Hi, I’m having trouble using the Apiary listed API for getting authentication. I’ve looked through old forum posts about the topic and found that the listed API is out-of-date and that the current endpoint is /oauth2/token instead of /oauth2/access_token/ like listed on Apiary, but I am only getting a 405.
The credentials I am providing are associated with the account I made the application with on the beta website, and the settings for that are:
* **Client type**public
* **Authorization Grant Type**client-credentials
Are these settings correct? Should they be changed? If they are correct, is there something I’m clearly doing wrong? I’m new to this, so I’m sorry if I missed another thread that has the solution.
This doesn’t work when I try to modify my code to send the same info, but using the curl you posted in that thread, I do get a response, which means I’m doing something wrong on my end as well as having the issue you pointed out. That’s enough info for me to fix the rest on my own, I think.
I’ll post again when I have it working so the next person to search can find it before they need to ask.
I think looking at the code for Termsuji and for Rengo-bot is a decent substitution, because these do work currently (in my understanding). At least, I figured out the second half of my issue from looking at the Rengo-bot code.
Oh, also notable, I couldn’t find the application manager from the main OGS website, only from the beta site. It has the same directory though, so it’s https://online-go.com/oauth2/applications for anyone who needs it.