Sha256: 947c60ef66723cdca248928276a1da375331d807efd8e89db7932b062a5026ff
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
module ItunesSearch ENDPOINT = "http://itunes.apple.com" #"http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch" class Base attr_accessor :search_type # @media - movie, podcast, music, musicVideo, audiobook, shortFilm, tvShow, software, ebook, all # The following entities are available for each media type: # movie: movieArtist, movie # podcast: podcastAuthor, podcast # music: musicArtist, musicTrack, album, musicVideo, mix, song # Please note that "musicTrack" can include both songs and music videos in the results # musicVideo: musicArtist, musicVideo # audiobook: audiobookAuthor, audiobook # shortFilm: shortFilmArtist, shortFilm # tvShow: tvEpisode, tvSeason # software: software, iPadSoftware, macSoftware # ebook: ebook # all: movie, album, allArtist, podcast, musicVideo, mix, audiobook, tvSeason, allTrack def search(search_type, query, media="all", entity="allTrack", limit=50) return ItunesSearch::Search.new(search_type, CGI::escape(query), media, entity, limit) end def lookup(search_type, id, media="all", entity="song", limit=50) return ItunesSearch::Lookup.new(search_type, CGI::escape(id), media, entity, limit) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itunes-search-rb-0.3.4 | lib/itunes-search/base.rb |