i want my mtv!

11
I WANT MY MTV!

Upload: ramya

Post on 23-Feb-2016

29 views

Category:

Documents


0 download

DESCRIPTION

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/ - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: I WANT MY MTV!

I WANT M

Y

MTV!

Page 2: I WANT MY MTV!

I Want My MTV!Adobe Air

meets MTV APImeets LyricsFly.com

meets Amazon

Douglas Knudsenhttp://www.cubicleman.com

Page 3: I WANT MY MTV!

Agenda

•MTV API Introduction

•Amazon’s huge API

•LyricsFly.com API

•CODE!

Page 4: I WANT MY MTV!

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

Page 5: I WANT MY MTV!

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

Page 6: I WANT MY MTV!

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

Page 7: I WANT MY MTV!

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

Page 8: I WANT MY MTV!

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

Page 9: I WANT MY MTV!

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

Page 10: I WANT MY MTV!

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

Page 11: I WANT MY MTV!

Code!

• http://code.google.com/p/airvj/