Merge pull request #291 from microsoft/feature-2.0.2a
Update RestAPINotebook.ipynb
This commit is contained in:
Коммит
7ce84e335d
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче