How to access the thinkery API using Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
add-thing.rb
config.yaml-dist

README.md

sample-ruby

How to access the thinkery API using Ruby.

Our sample program can be used to add a thing:

$ ruby -rubygems add-thing.rb
{"_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 oauth2 library is being used. You can install it like this:

gem install oauth2