1 / 11

I WANT MY MTV!

I WANT MY MTV!. I Want My MTV! Adobe Air meets MTV API meets LyricsFly.com meets Amazon. Douglas Knudsen http://www.cubicleman.com. Agenda. MTV API Introduction Amazon’s huge API LyricsFly.com API CODE!. MTV API Introduction. http://developer.mtvnservices.com/

ramya
Download Presentation

I WANT MY MTV!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. I WANT MY MTV!

  2. I Want My MTV!Adobe Air meets MTV APImeets LyricsFly.commeets Amazon Douglas Knudsen http://www.cubicleman.com

  3. Agenda • MTV API Introduction • Amazon’s huge API • LyricsFly.com API • CODE!

  4. 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

  5. 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

  6. 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/hznHivqrbHHWNAXP/ will load a video XML directly

  7. 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

  8. 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

  9. 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

  10. LyricsFly.com • Why? First on a Google search  • http://lyricsfly.com/api/ • http://lyricsfly.com/api/api.php?i=d3e9ea1183e2c5c25-temporary.API.access&a=u2&t=sunday%20bloody%20sunday • Result is XML based • Actual lyrics are [BR] seperated

  11. Code! • http://code.google.com/p/airvj/

More Related