Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on how to authorize custom app on behalf of user #73

Open
ItsMeStevieG opened this issue Oct 10, 2020 · 7 comments
Open

Example on how to authorize custom app on behalf of user #73

ItsMeStevieG opened this issue Oct 10, 2020 · 7 comments

Comments

@ItsMeStevieG
Copy link

ItsMeStevieG commented Oct 10, 2020

I need to authenticate (like Beacon does) to gain access to boost history and server boosted days.

Any help? I need a PHP example on how to authenticate.

@killah0391
Copy link

I need to authenticate (like Beacon does) to gain access to boost history and server boosted days.

Any help? I need a PHP example on how to authenticate.

You are so right. I try to code something for my server, so player's can see server status, suspend time, current player number for each map and so on, but i fail to show this to website visitors, because they don't have authorisation to API. Maybe someone can help me?

@ItsMeStevieG
Copy link
Author

I need to authenticate (like Beacon does) to gain access to boost history and server boosted days.
Any help? I need a PHP example on how to authenticate.

You are so right. I try to code something for my server, so player's can see server status, suspend time, current player number for each map and so on, but i fail to show this to website visitors, because they don't have authorisation to API. Maybe someone can help me?

I am working on something at the moment which will allow this functionality. I’ll keep you posted

@ItsMeStevieG
Copy link
Author

I need to authenticate (like Beacon does) to gain access to boost history and server boosted days.
Any help? I need a PHP example on how to authenticate.

You are so right. I try to code something for my server, so player's can see server status, suspend time, current player number for each map and so on, but i fail to show this to website visitors, because they don't have authorisation to API. Maybe someone can help me?

Check out what I made oauth2-nitrado. Hope this helps :)

@ItsMeStevieG
Copy link
Author

Could you explain why this was close without resolving? Nobody provided any examples of usage

@NitradoTimo NitradoTimo reopened this Mar 23, 2022
@NitradoTimo
Copy link
Contributor

Sorry for the missunderstanding @ItsMeStevieG - I thought you provided your working example ;)
All available API endpoints are provided here: https://doc.nitrado.net/

Any specific endpoint with which you are struggling with?

@ItsMeStevieG
Copy link
Author

ItsMeStevieG commented Sep 8, 2023

@NitradoTimo Yes I had provided a 3rd part authentication Example. Perhaps you could include some example of usage (especially oAuth) in the readme for the PHP API. This might clear up some confusion on the API :) If you provide this I'm sure this would be sufficient for what most users have had issues with.

Perhaps list the process of creating a long life token in the Nitrado site, or how to do on the fly authentication. Thanks

@ItsMeStevieG
Copy link
Author

Getting An Access Token

  1. Go to www.nitrado.com then click Log In.
  2. Login to your Nitrado Account.
  3. Once you are logged in, click the user menu at the top right, then click My Account.
  4. From the My Account screen, under the options section click Developer Portal.
  5. From the Developer Portal, click Long-life tokens.
  6. Authenticate with your nitrado account password, then click Verify.
  7. Type in an identification description for the token, then select which permission scopes you require from the checkboxes below, then click Create.
  8. You will see a message at the top saying
    A new long-life token has been created, please note this token: with the token code after. Copy this token and save it.
    !!! NOTE: Never share this with anybody else !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants