mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 05:47:23 +00:00
Update example.py
This commit is contained in:
parent
90a9d65203
commit
99a646f91d
@ -2,11 +2,9 @@ import json
|
|||||||
import requests
|
import requests
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
tenant_id="{your tenant ID}"
|
auth_url="Your Authorization URL"
|
||||||
client_id="{your client ID}"
|
client_id="Your Client ID"
|
||||||
client_secret="{your client secret}"
|
client_secret="Your Client Secret"
|
||||||
|
|
||||||
auth_url = "https://login.windows.net/{0}/oauth2/token".format(tenant_id)
|
|
||||||
|
|
||||||
payload = {"resource": "https://graph.windows.net",
|
payload = {"resource": "https://graph.windows.net",
|
||||||
"client_id": client_id,
|
"client_id": client_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user