Posts by inferno472

Dear forum members,
for some time now we have been creating and maintaining new ways to help game server admins with questions and problems as quickly as possible, e.g. our Guides section and the Nitrado Community Discord.

Therefore, we inform you that the Nitrado Forum will be closed on March 31, 2023. We are consolidating our community support to our Discord channel, which is faster and more efficient. We have also seen incredible growth in our community due to the hard work of our moderators and our bots. We are confident that this move will ensure that we provide the best support possible for our users.

Thank you to all members for your continued use of the forum!

Assistance with all questions concerning your Nitrado service can now be found in these spots:
Community Discord: https://discord.gg/nitrado
Guides section: https://server.nitrado.net/guides
Support Wizard: https://support.nitrado.net

    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?