Web services and JavaScript

Web Services and JavaScript Using and Offering Data on the Webfor All of Us Christian Heilmann – Ajax Experience, Boston,MA, USA – September 2009

I am Chris. Developer Evangelist

Evolving the web.

The web of data.

CMS

CMS Tags, Comments, Connections, Embeds

Access issues.

Trust issues.

Client issues.

Liberating thoughts.

Photo of Scott Schiller

New environments.

Widgets.

Air

Browser Extensions

Easing access.

The Yahoo Query Language, or short YQL is a unified interfacelanguage to the web. http://developer.yahoo.com/yql/

select {what} from {source} where {conditions} | {filters}

http://query.yahooapis.com/ v1/public/yql?q={query}&format={format}

For example: select * from geo.places wheretext='london,uk'

Get only the where on earth ID select woeid from geo.placeswhere text='london,uk'

Then mix: select id from flickr.photos.search where woe_id in(select woeid from geo.places where text='london,uk') andlicense=4

Then mix: select id from flickr.photos.search where woe_id in(select woeid from geo.places where text='london,uk') andlicense=4

And get all the info... select * from flickr.photos.info wherephoto_id in (select id from flickr.photos.search where woe_id in(select woeid from geo.places where text='london,uk') andlicense=4)

Then display them using frameworks...http://isithackday.com/hacks/cantine/ index.php?loc=covent+gardenhttp://isithackday.com/hacks/cantine/

Is this Yahoo only?

Any data will do... atom csv feed select * from html jsonmicroformats rss xml

I won the competition last week (Netbook + Mobile)

How did I do it?

Rockstar?

Lazy!

INSERT INTO bitly.shorten (login, apiKey, longUrl) VALUES('USERNAME', 'API_KEY', 'http://yahoo.com')Read or write...http://developer.yahoo.com/yql/guide/yql-iud-statements.html

And free your JavaScript! ★ Full REST support ★oAuth ★ E4X ★ xpath ★ json+xml ★ crypto★ include() and use()http://developer.yahoo.com/yql/guide/yql-execute-chapter.html

Now go and play!

October 9 & 10 - NYC http://icanhaz.com/yahoohacknyc

 Chris5an Heilmann h7p://wait‐5ll‐i.com  Thanks! h7p://developer‐evangelism.com h7p://twi7er.com/codepo8   

Jump directly to slide:

    Easy Slideshare by Christian Heilmann, licensed with BSD License.