help

15 views
Skip to first unread message

mbella...@gmail.com

unread,
Sep 5, 2020, 1:03:01 PM9/5/20
to Django users
please need to know how to get the response from retreiving a requests.get("http...", parms=payload)
where payload is grant_type, client_id, client_secret 

need to know how to get the access token from an api 

Anil pawar

unread,
Sep 7, 2020, 9:38:24 AM9/7/20
to Django users
Can you please share sample any sample code to understand with Django Packages do you want to achieve it.

Maybe this one helps you if you want to access the 3ed party API with the token.

headers = {'Authorization': 'Token 9054f7aa9305e012b3c2300408c3dfdf390fcddf'} 
requests.get("http...", parms=payload, headers=headers)
Reply all
Reply to author
Forward
0 new messages