i want my mtv!. i want my mtv! adobe air meets mtv api meets lyricsfly.com meets amazon douglas...
Post on 19-Dec-2015
236 Views
Preview:
TRANSCRIPT
I Want My MTV!Adobe Air
meets MTV APImeets LyricsFly.com
meets Amazon
Douglas Knudsenhttp://www.cubicleman.com
MTV API Introduction
• http://developer.mtvnservices.com/• Recently out of a private beta• RESTful based approach• Results are in XML format, either Atom or MRSS• See http://search.yahoo.com/mrss/ about MRSS• Now supports
http://a9.com/-/spec/opensearch/1.1/ standard for use in paginating results
• Currently free, no reg, no API key• Be cognizant of MTV’s terms of service
General Info
• Video Feeds and Entries• Parameters• Video Player
– No FLV access– URL is to MTV SWF player which loads video– Flex: can use SWFLoader and
Security.allowInsecureDomain()– Air: easy to use HTML control and embed
• Results are limited to 100 items
Video Methods
• http://api.mtvnservices.com/1/video/search/?term=u2&start-index=1&max-results=10
• Use e4x and parse quickly and easily• See
http://livedocs.adobe.com/flex/3/langref/XML.html
• See the code for MTVDataTranslator now• http://api.mtvnservices.com/1/video/hznHivqrbH
HWNAXP/ will load a video XML directly
Artist Methods
• http://api.mtvnservices.com/1/artist/placebo/
• Returns a artist entry with video list link, related artist link, genre link, and images
• Search artists with http://api.mtvnservices.com/1/artist/search/[parameters]
• Artist browse for A, B, C, … Z UIs
Genre Methods
• Recent addition• http://api.mtvnservices.com/1/genre/rock/
the alias method returns links to videos and artists in the genre
• Example http://api.mtvnservices.com/1/genre/rock/videos/ lists rock videos
Amazon API
• Extensive• AWS SOAP is dirty, has issues and the
outstanding Flex Builder WSDL importer chokes on it. Namespace related
• So I used Object as a resultFormat instead of e4x
• Need to register and get a API Key its free• http://aws.amazon.com/resources/• REST based is around too
LyricsFly.com
• Why? First on a Google search • http://lyricsfly.com/api/• http://lyricsfly.com/api/api.php?i=d3e9ea11
83e2c5c25-temporary.API.access&a=u2&t=sunday%20bloody%20sunday
• Result is XML based • Actual lyrics are [BR] seperated
top related