Hello, i am trying to create a nitrado bot on python, but i have some issue with API,
First my step i send get method with the next parameter:
Python
- respons = self.session.get(url, timeout = 5, data = {
- 'redirect_uri': 'https://oauth.nitrado.net/oauth/v2/auth',
- 'client_id': 'my_client_id',
- 'response_type': 'code',
- 'state': 'my_state' })
- #Respons
- <meta name="csrf-param" content="authenticity_token" />
- <meta name="csrf-token" content="some_token......" />
and i get a registration window, where i can get csrf-token,
then i send a post method with the next param
but here my respons is
400
{"status":"error","message":"Auth Code can't be found."}
where my issue?,
can help me please?