Creating token return 405 error

I was following documentation API For Online Go (OGS) · Apiary on creating a token.

In Postman I set the request method, url and the parameters like this
POST http://online-go.com/oauth2/token?username=&password=&client_id=<client_id>&client_secret=<client_secret>&grant_type=password

The application is public and Authorization Grant Type.

I am not quite sure what I did wrong here. I am receiving a 405 error code.

Can someone help?

I don’t really understand this stuff, but I remember I was able to get Termsuji working by using Client Type: public and Authorization Grant Type: password.

@lvankeulen may be able to give better advice

After some trial and error, a little bit of luck in postman:

Note that I didn’t send the client secret.

So your curl command might look something like this:

curl -X POST -d 'grant_type=password&username=<username>&password=<password>&client_id=<client_id>' https://online-go.com/oauth2/token/

I finally got it!! @benjito thanks so much for your help! The trick is to use body and not params and without the client secret like you showed.

1 Like