Skip to content

Commit 81bc034

Browse files
authored
Merge pull request #116 from AzureAD/sample-json-output
Sample json output
2 parents 736da1c + 1cc45df commit 81bc034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sample/confidential_client_certificate_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
graph_data = requests.get( # Use token to call downstream service
6868
config["endpoint"],
6969
headers={'Authorization': 'Bearer ' + result['access_token']},).json()
70-
print("Graph API call result: " + str(graph_data))
70+
print("Graph API call result: %s" % json.dumps(graph_data, indent=2))
7171
else:
7272
print(result.get("error"))
7373
print(result.get("error_description"))

sample/confidential_client_secret_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
graph_data = requests.get( # Use token to call downstream service
6767
config["endpoint"],
6868
headers={'Authorization': 'Bearer ' + result['access_token']},).json()
69-
print("Graph API call result: " + str(graph_data))
69+
print("Graph API call result: %s" % json.dumps(graph_data, indent=2))
7070

7171
else:
7272
print(result.get("error"))

0 commit comments

Comments
 (0)