A Ruby interface for Annict API
Add this line to your application's Gemfile:
gem 'annict'
And then execute:
$ bundle
Or install it yourself as:
$ gem install annict
require 'annict'
client = Annict::Client.new(access_token: 'annict_access_token')
Available params
:fields
:filter_ids
:filter_season
:filter_title
:page
:per_page
:sort_id
:sort_season
sort_watchers_count
client.works
#=> GET /v1/works
Available params
:fields
:filter_ids
:filter_work_id
:page
:per_page
:sort_id
:sort_sort_number
client.episodes
#=> GET /v1/episodes
Available params
:fields
:filter_ids
:filter_episode_id
:filter_has_record_comment
:page
:per_page
:sort_id
:sort_likes_count
client.records
#=> GET /v1/records
Available params
:fields
:filter_ids
:filter_usernames
:page
:per_page
:sort_id
client.users
#=> GET /v1/users
Available params
:fields
:filter_user_id
:filter_usernames
:page
:per_page
:sort_id
client.following
#=> GET /v1/following
Available params
:fields
:filter_user_id
:filter_usernames
:page
:per_page
:sort_id
client.followers
#=> GET /v1/followers
Available params
:fields
:filter_user_id
:filter_usernames
:page
:per_page
:sort_id
client.activities
#=> GET /v1/activities
Available params
:fields
client.me
#=> GET /v1/me
Necessary params
:word_id
:kind
client.change_status({ work_id: 1808, kind: 'wanna_watch' })
#=> POST /v1/me/statuses
Necessary params
:episode_id
Available params
:comment
:rating
:share_twitter
:share_facebook
client.add_record({ episode_id: 1808, comment: 'えるたそ〜' })
#=> POST /v1/me/records
Available params
:fields
:filter_ids
:filter_season
:filter_title
:filter_status
:page
:per_page
:sort_id
:sort_season
:sort_watchers_count
client.own_works
#=> GET /v1/me/works
Available params
:fields
:filter_ids
:filter_channel_ids
:filter_work_ids
:filter_started_at_gt
:filter_started_at_lt
:filter_unwatched
:filter_rebroadcast
:page
:per_page
:sort_id
:sort_started_at
client.programs
#=> GET /v1/me/programs
Available params
:fields
:filter_actions
:filter_muted
:page
:per_page
:sort_id
client.following_activities
#=> GET /v1/me/following_activities
- Fork it ( https://github.com/alitaso345/annict-ruby/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
The gem is available as open source under the terms of the MIT License.