How to create an API client (in Python)?

I am confused about how to create my client. And the official docs do not really make it clear how to do so.

And the related forum post appears to be out of date as well.

And the 3rd party tool I am interested in says


from ogsapi.client import OGSClient

ogs = OGSClient('your_client_id', 'your_client_secret', 'your_username', 'your_password')

but it doesnt say how to get a client id or secret.

2 Likes

https://ogs-python.dakotamarshall.net/usage/

cc: @Bone-A_Lisa

3 Likes

@benjito gave you the right link, but ill update the README to be a little more clear on that, sorry lol.

If you run into any issues, feel free to make a post here or open an issue on the gitlab repo. The github repo is just a mirror for visibility, i do the actual dev work on gitlab.

2 Likes