Nitrado bot on Python

Become part of a great team that has nothing less as its goal than to be the world's best game server provider. Keep facing new, challenging and exciting tasks at a company that values your opinion.


open positions @ Nitrado
  • 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
    1. respons = self.session.get(url, timeout = 5, data = {
    2. 'redirect_uri': 'https://oauth.nitrado.net/oauth/v2/auth',
    3. 'client_id': 'my_client_id',
    4. 'response_type': 'code',
    5. 'state': 'my_state' })
    6. #Respons
    7. <meta name="csrf-param" content="authenticity_token" />
    8. <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


    Python
    1. url = "https://oauth.nitrado.net/oauth/v2/token"
    2. respons = self.session.post(url, timeout = 5, data = {
    3. 'client_id': 'my_cliend_id',
    4. 'client_secret': 'my_client secret',
    5. 'grant_type': 'authorization_code',
    6. 'code': 'content from csrf-token'
    7. })

    but here my respons is

    400

    {"status":"error","message":"Auth Code can't be found."}

    where my issue;(;(;(?,

    can help me please?