Merge pull request #291 from microsoft/feature-2.0.2a

Update RestAPINotebook.ipynb
This commit is contained in:
John Rampono 2023-11-09 06:46:20 +08:00 коммит произвёл GitHub
Родитель 6aa00dbcbf 9921eaecc5
Коммит 7ce84e335d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -126,7 +126,7 @@
"\n",
"# Replace with the correct URL\n",
"\n",
"#url = \"https://api.github.com/orgs/arkahna/events?per_page=50\"\n",
"#url = \"https://api.github.com/orgs/xxxx/events?per_page=50\"\n",
" #curl -X POST \"https://api.twitter.com/2/tweets\" -H \"Authorization: OAuth $OAUTH_SIGNATURE\" -H \"Content-type: application/json\" -d '{\"text\":\"test\"}'\n",
"\n",
"#headers={}\n",
@ -489,7 +489,7 @@
"requestMethod = \"POST\"\n",
"headers = {\n",
" \"Content-Type\": \"application/json\",\n",
" \"Authorization\": \"Bearer pat-na1-0bf1546c-dd9c-4607-bef6-1da283461163\"\n",
" \"Authorization\": \"Bearer xxxxxxxxx\"\n",
"}\n",
"\n",
"response = requests.request(requestMethod, url, headers=headers, data=payload)\n",