Skip to content
This repository was archived by the owner on Mar 7, 2020. It is now read-only.

Commit cb8434d

Browse files
author
Doug Mahugh
committed
get() returns Request object
1 parent d8e4fa7 commit cb8434d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sample_graphrest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def authorized():
3232
def graphcall():
3333
"""Confirm user authentication by calling Graph and displaying some data."""
3434
endpoint = MSGRAPH.api_endpoint('me')
35-
graphdata, status_code = MSGRAPH.get(endpoint)
36-
# for a production app, check status_code and handle errors
35+
graphdata = MSGRAPH.get(endpoint).json()
3736
return {'graphdata': graphdata, 'endpoint': endpoint, 'sample': 'graphrest'}
3837

3938
@bottle.route('/static/<filepath:path>')

0 commit comments

Comments
 (0)