NitrAPI-PHP
NitrAPI-PHP copied to clipboard
Example on how to authorize custom app on behalf of user
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.
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 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
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 :)
Could you explain why this was close without resolving? Nobody provided any examples of usage
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?
@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
Getting An Access Token
- Go to www.nitrado.com then click Log In.
- Login to your Nitrado Account.
- Once you are logged in, click the user menu at the top right, then click My Account.
- From the My Account screen, under the options section click Developer Portal.
- From the Developer Portal, click Long-life tokens.
- Authenticate with your nitrado account password, then click Verify.
- Type in an identification description for the token, then select which permission scopes you require from the checkboxes below, then click Create.
- 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 !!!