Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shangrila

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shangrila

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

#ShangriLa SDK for Ruby

##Install

gem install shangrila

or Gemfile

gem 'shangrila'

Command Usage

anime-api

shell$ anime-api -h
Usage: anime-api [options]
    -c COURS                         anime cours..1=winter or 2=spring or 3=summer or 4=autumn
    -y YEAR                          year...2014 <= ?
    -s                               connect standby_server.  default=moemoe.tokyo standby=api.tv-anime.biz

shell$ anime-api -y 2016 -c 4 | jq .

anime-api-twitter

shell$ anime-api-twitter -a usagi_anime

Gem Usage

Master API

Get master record

Shangrila::Sora.new().get_master_data(year, cours)

Shangrila::Sora.new().get_master_data(2014, 1)

Get anime title list

Shangrila::Sora.new().get_title_list(year, cours)

Shangrila::Sora.new().get_title_list(2015, 1)

Get anime master data map key=id

Shangrila::Sora.new().get_map_key_id(year, cours)

Shangrila::Sora.new().get_map_key_id(2015, 1)

Get anime title map

Shangrila::Sora.new().get_map_with_key_title(year, cours, property)

Shangrila::Sora.new().get_map_with_key_title(2015, 2, 'twitter_account')

Get flat data

Shangrila::Sora.new().get_flat_data(year, cours, property_list)

Shangrila::Sora.new().get_flat_data(2014, 2, ['title', 'twitter_hash_tag'])

(IN irb)
irb(main):001:0> require 'shangrila'
=> true
irb(main):002:0> Shangrila::Sora.new().get_flat_data(2015, 4, ['id', 'title']).each{|v| p v}

Twitter API

Get Twitter Follower Status

Shangrila::Sana.new().follower_status(['usagi_anime','kinmosa_anime','aldnoahzero'])

Get Twitter Follower History

Shangrila::Sana.new().follower_history('usagi_anime')

Shangrila::Sana.new().follower_history('usagi_anime', 1446901208)

Shangrila::Sana.new().follower_history_daily('usagi_anime', 30)

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc