Note: The API for This Is My Jam is stil in beta, so if you'd like to use it please email the Jam team at firstname.lastname@example.org to get on their mailing list.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install jammed
Note: Right now, since the API is in beta,
Jammed.new can be called without supplying an API key (it defaults to the beta key). Once individual dev keys are available this will change.
require 'jammed' jammed = Jammed.new('987bcab01b929eb2c07877b224215c92') pop_jams = jammed.popular_jams iftfom_profile = jammed.profile('IFTFOM') iftfom_likes = jammed.likes('IFTFOM', :show => :current) iftfom = jammed.user('IFTFOM') iftfom.profile # same as jammed.profile('IFTFOM') iftfom.likes(:show => :current) # same as jammed.likes('IFTFOM', :show => :current) iftfom.likes! #resets cached likes and return all of IFTFOM's like
Also, pagination is not supported at the moment. So, at most you will get the first 60 results for any API call that returns a list. Automatically handling pagination is a first priority for the next release.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request