Skip to content

thinkery/sample-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-python

How to access the thinkery API using Python.

We provide a very small library (heavily inspired by requests-oauth2) which uses a username/password combination to authenticate against the api. You can also use a web flow (and the url provided by API.authorize_url()) to get an access token.

Our sample program can be used to add a thing:

$ python add-thing.py "test thing" -t foo bar
{"_id":"31293a4c1cb602d812621129","title":"test thing","date":1359560000,"tags":["foo","bar"]}

(the response is the raw output from the api, which shows the thing that has been added successfully)

Requirements

To use the API, you must create your API keys at https://thinkery.me/api/apps/

Also the requests library is being used. You can install it like this:

pip install requests

About

How to access the thinkery API using Python 2.7+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages