Python and the API

Im not a superhaxxor but i dabble in python… apparently not enough to be able to figure out the API documentation so i would greatly appreciate some example-code for getting the access-tokens and all that stuff. Preferably with urrlib/urlib2 … anyone done anything in that already they would like to share?

1 Like

I might recommend using the ‘requests’ library:

http://docs.python-requests.org/en/latest/

It makes dealing with http stuff a breeze.

3 Likes

In the api documentation there is an example tab where you can choose to see python code

2 Likes

Can you please past full link? I can’t find this page on documentation.

Thanks

http://docs.ogs.apiary.io/

3 Likes

Many thanks.