I started studying understanding how APIs work and I'm having trouble following their reasoning ...
Â
Following the API guide, I set the API Enabled field to True. and created an account with user "server" and granted access "api server true".
To start the next step as I'm on localhost using XAMPP, I created a folder in htdocs "api / oauth / token" and a "request.json" file with the following code: Â
On a server that I have hosting sites I put the same folders and the file request.json and with the site did a test and got 200 success: https://reqbin.com/
Â
The first question came to mind, do I need to create a get token file, refresh token, delete token and so on?
When it comes to a user do I need to create their file or folder or how would the server do it automatically?
Related to users and commands like get item would you need to manually create this entire directory "/ api / v1 / players / [lookupKey] / items / inventory"?
Then I had the doubt how to connect this api with the server once I have the user, just put in the api configuration file on the server the direction and the port where has the API files?
Question
Hitz
Hello
I started studying understanding how APIs work and I'm having trouble following their reasoning ...
Â
Following the API guide, I set the API Enabled field to True. and created an account with user "server" and granted access "api server true".
To start the next step as I'm on localhost using XAMPP, I created a folder in htdocs "api / oauth / token" and a "request.json" file with the following code: Â
Â
Â
On a server that I have hosting sites I put the same folders and the file request.json and with the site did a test and got 200 success: https://reqbin.com/
Â
Â
Thanks
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now