Module: ShikiAPI

Includes:
HTTParty
Defined in:
lib/ShikiAPI.rb,
lib/ShikiAPI/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.anime(id) ⇒ Object



16
17
18
19
# File 'lib/ShikiAPI.rb', line 16

def self.anime(id)
	get("/animes/#{id}",
	:headers =>{'Content-Type' => 'application/json'})
end

.search(name) ⇒ Object



11
12
13
14
# File 'lib/ShikiAPI.rb', line 11

def self.search(name)
	get("/animes?search=#{URI.encode(name)}&limit=50",
	:headers =>{'Content-Type' => 'application/json'})
end