SyoboiCalendar
An API Client library for http://cal.syoboi.jp/ written in Ruby.
Requirements
- Ruby 2.2.2 or higher
Installation
Add this line to your application's Gemfile:
gem "syoboi_calendar"And then execute:
bundleOr install it yourself as:
gem install syoboi_calendarUsage
SyoboiCalendar::Client.new
Creates an instance of SyoboiCalendar::Client.
require "syoboi_calendar"
client = SyoboiCalendar::Client.newSyoboiCalendar::Client#list_channel_groups
Available options:
:channel_group_id:updated_from:updated_to
client.list_channel_groupshttp://cal.syoboi.jp/db.php?Command=ChGroupLookup
SyoboiCalendar::Client#list_channels
Available options:
:channel_id:updated_from:updated_to
client.list_channelshttp://cal.syoboi.jp/db.php?Command=ChLookup
SyoboiCalendar::Client#list_programs
Available options:
:count:fields:played_from:played_to:program_id:started_from:started_to:title_id:updated_from:updated_to
client.list_programshttp://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles
SyoboiCalendar::Client#list_titles
Available options:
:fields:title_id:updated_from:updated_to
client.list_titleshttp://cal.syoboi.jp/db.php?Command=TitleLookup&TID=*
SyoboiCalendar::Responses::BaseResponse
Available methods:
#body#code#each#has_error?#headers#message#resources#status
SyoboiCalendar::Resources::ChannelGroupResource
Available methods:
#comment#id#name#order
SyoboiCalendar::Resources::ChannelResource
Available methods:
#channel_group_id#comment#epg_url#id#iepg_name#name#number#url
SyoboiCalendar::Resources::ProgramResource
Available methods:
#channel_id#comment#count#deleted?#finished_at#flag#id#iepg_name#rerun?#revision#started_at#sub_title#title_id#warn
SyoboiCalendar::Resources::TitleResource
Available methods:
#casts#category_id#comment#english_name#first_channel#first_end_month#first_end_year#first_month#first_year#flag#id#kana#keywords#name#short_title#songs_ending#songs_inserted#songs_opening#songs_theme#staffs#sub_titles#user_point_rank#user_point