wpp hackday presentation - yql

23

Upload: sriramiyer2007

Post on 18-Jun-2015

269 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: WPP Hackday presentation - YQL
Page 2: WPP Hackday presentation - YQL

YQLSriram Iyer

YQL Engineering

Page 3: WPP Hackday presentation - YQL

SELECT * FROM INTERNET

Page 4: WPP Hackday presentation - YQL

WHAT IS YQL

•Query, filter, and join data across web services•Merge multiple data sources

•Expressive SQL-like language•Uniform access •No need to call different APIs

•Execute JS code to mutate request/response•Decorate, annotate, create own data model

•Tools and documentation for rapid development•Console, Table Editor, Guide, Blog, and Forum

Page 5: WPP Hackday presentation - YQL

XML JSON CSV

XML JSONPJSON

HTML

Page 6: WPP Hackday presentation - YQL

YQL FORMATS

•Accepts JSON, XML, HTML, CSV

•Outputs XML, JSON, JSONP

•Provides data type transformers and mutators

•Tidies up data sources for you

•Lets you spend more time building your app

Page 7: WPP Hackday presentation - YQL

FAST, GLOBALLY AVAILABLE

•Deployed across the globe

•Both front and back facing caches

•Developers can control cache behavior•_maxage parameter•_stalewhilerevalidate parameter

•Rate limited for external developers•2000 calls per hour per IP on public endpoint•20000 on OAuth protected endpoint

Page 8: WPP Hackday presentation - YQL

APP DEVELOPMENT USING YQL

•Pick the open tables to build your app

•Build new ones for your API if needed

•Test the tables in the YQL console

•Use the YUI-YQL module to get data

•Or just call the REST query endpoint

Page 9: WPP Hackday presentation - YQL

DATA SECURITY USING YQL

•Public endpoint - /v1/public/yql•Non-personalized data – securityLevel=“any”

•OAuth endpoint – v1/yql•2-legged – securityLevel=“app”•3-legged – securityLevel = “user”

Page 10: WPP Hackday presentation - YQL

YQL CONSOLE

Page 11: WPP Hackday presentation - YQL

CONSOLE PARAMETERS - DIAGNOSTICS

Page 12: WPP Hackday presentation - YQL

CONSOLE PARAMETERS - DEBUG

Page 13: WPP Hackday presentation - YQL

CONSOLE PARAMETERS – DEBUG CONTD.

Page 14: WPP Hackday presentation - YQL

CONSOLE TIPS – REST QUERY

http://hackevent.yql.yahooapis.com/v1/public/yql?q=select%20*%20from%20answer.search%20where…

Page 15: WPP Hackday presentation - YQL

CONSOLE TIPS – COMMUNITY TABLES

Page 16: WPP Hackday presentation - YQL

CONSOLE TIPS – PERMALINK & ALIAS

Page 17: WPP Hackday presentation - YQL

TABLE EDITOR

•Rapid YQL table prototyping•Create YQL tables•Create YQL Environment files•Create YQL Javascript execute files

•Sample templates for all three

•Nifty drag & drop support

•All the above stored in the Yahoo! cloud

Page 18: WPP Hackday presentation - YQL

TABLE EDITOR – SAMPLE TABLE

http://hackevent.yql.yahooapis.com/v1/public/yql?q=use%20%22store%3A%2F%2FJBICskKfvKMhO3ddy3f0Wk%22%20as%20crunchbase.company%3B%20select%20*%20from%20crunchbase.company%20where%20name%3D%27yahoo%27&diagnostics=true

Page 19: WPP Hackday presentation - YQL

TABLE EDITOR – SAMPLE JAVASCRIPT

Page 20: WPP Hackday presentation - YQL

TABLE EDITOR – SAMPLE ENVIRONMENT

Page 21: WPP Hackday presentation - YQL

DEMO

Page 22: WPP Hackday presentation - YQL

QUESTIONS

Page 23: WPP Hackday presentation - YQL

THANKS

Console: http://developer.yahoo.com/yql/console

Endpoint: hackevent.yql.yahooapis.com

Community: http://www.yqlblog.net/ http://www.datatables.org/ https://github.com/yql/yql-tables

Email: [email protected]

Twitter: @yql

Slides: http://www.slideshare.net/sriramiyer2007/presentatio

ns