Hi there,
How do a get a client id so that I can write REST API calls ?
There is an older thread but no details on how to generate or get the client ID code.
Hi there,
How do a get a client id so that I can write REST API calls ?
There is an older thread but no details on how to generate or get the client ID code.
Anyone able to help?
Could you share what you have tried so far?
The first step says to register at https://beta.online-go.com/oauth2/applications/
I have created an account there, but not clear what to do after that.
The site just looks like the main site ?
Where is the menu to register an application ?
I would have expected something like Settings / Register for API or / Get Client ID
I have tried code in python like:
import requests as rq
data = {
'grant_type' : 'password',
'username' : 'myusername',
'password': 'mypassword',
'client_id': 'abcedfghijkl123'
}
resp =rq.post('https://online-go.com/oauth2/token/', data = data)
print(resp.text)
And the response is:
{"error": "invalid_client"}
So how do you get a valid client ? I’m not the first person to ask this and the thread I quoted did not supply the answer either.
UPDATE:
I eventually got a pop up dialogue at
XXXhttps://beta.online-go.com/oauth2/applications/
Note I have had to put XXX in front of the URL to display the address properly.
I registered a client ID at the main site at:
XXXhttps://online-go.com/oauth2/applications/
Then changed the above code to use the client_id that I was supplied with and
it still came back invalide client id.
This document says ’
You will need to direct the user to generate an *Application Specific Password* .
...in that the user will navigate to their
[Settings Page](https://online-go.com/user/settings)
and generate this password for use in your application.
So where’s the generate password option on the settings page ?
I think backticks also work like https://beta.online-go.com/oauth2/applications/
But less spicy than XXX OGS
That’s the one where the higher subscription tiers give you tasteful pics from the maintainer performing pedal te-tsuke?