[Answered ]-How to get a JSON response from a POST form using Django

2👍

As I understand from the api documentation, you should send a application code and get the token. So, let authorization_code be your app code.

import requests
r = requests.post("https://helios.zportal.nl/api/v2/oauth/token", data={'grant_type': 'authorization_code', 'code': *Authorization Code*})

r.text get you the responded text from the server.

Leave a comment