YDN KR Tech Talk : Pipes 와 YQL 활용하기

  • View
    2.896

  • Download
    0

Embed Size (px)

DESCRIPTION

Apps !Pipes : Data !YQL : Pipes , SQL

Transcript

  • Y!Pipes & YQL Yahoo! Developer Network 2009.08.25
  • Technical Evangelist YDN KR Blog ydnkrblog.com YDN KR Twitter twitter.com/ydnkr phpschool.com (98~05, 8 ) lovesera.com (2001 ~) Twitter, @phploveme
  • Apps 1 2 3 Open API PHP Flash RSS, ASP Silverlight XML JSP CSS/JS HTML YUI
  • ! var map = new YMap(document.getElementById('map')); ? var currentGeoPoint = new YGeoPoint( _c.Lat, _c.Lon ); map.addMarker(currentGeoPoint); ? if (flickcurl_prepare(fc, "flickr.photos.geo.correctLocation", parameters, count)) { } http://search.yahooapis.com/ ImageSearchService/V1/imageSearch? ? appid=YahooDemo&query=Corvette&results= ? 2 http://weather.yahooapis.com/ forecastrss?p=FRXX0076&u=c
  • YQL YQL SELECT * FROM Internet
  • Data !
  • Pipes NHN RSS DAUM JSON Yahoo! Flash Silverlight HTML CSS/JS YUI MS PHP Web Data Badge
  • Y!Pipes Library Canvas Help Debugger
  • Output http://pipes.yahoo.com/phploveme/yuiyql
  • Widget
  • DEMO : Daum + Naver Blog pipes.yahoo.com/phploveme/yuiyql
  • Yahoo Pipes DEMO Pipes URL http://pipes.yahoo.com/phploveme/yuiyql Daum Blog URL http://apis.daum.net/search/blog?apikey=[APIKEY]&q= Naver Blog URL http://openapi.naver.com/search?key=[APIKEY]&target=blog&query= User Input - Text Input URL Url - URL Builder String - Private String Source - Fetch Feed Operator - Union Operator - Sort
  • Pipes Access
  • YQL developer.yahoo.com/yql
  • Yahoo! Query Language social, flickr, geo, local, weather mybloglog, search, upcoming, yahoo HTML, RSS, XML, JSON, CSV + Community Open Data Table(177)
  • Yahoo!
  • YQL : social.profile select * from social.profile where guid=me
  • flickr :
  • YQL : flickr.photos.search
  • RSS select * from rss where url='http://ydnkrblog.com/blog/?feed=rss2'
  • IP/ select * from ip.location where ip='222.122.195.6'
  • select * from twitter.user.status where id='ydnkr'
  • YQL : Flickr Search
  • YQL : Flickr Photo Widget , yql-image.php select * from {table}http://twitter.com/statuses/show/{id}.xml var r = null; if (username) { var query = y.query('select * from twitter.user.timeline where id="'+username+'";'); var result = ; for each (var twit in query.results.entry) { result.appendChild(twit); } response.object = result; } else { r = request.get().response; response.object = r; } http://twitter.com/statuses/update.xml var r = null; y.include("http://yqlblog.net/samples/base64.js"); var authheader = "Basic " + Base64.encode(username+":"+password); var content = "status="+status; r = request.header("Authorization", authheader).post(content).response; response.object = r; http://twitter.com/statuses/destroy/{updateid}.xml var r = null; y.include("http://yqlblog.net/samples/base64.js"); var authheader = "Basic " + Base64.encode(username+":"+password); response.object = request.header("Authorization", authheader).del().response;
  • 2. INSERT into Twitter use "http://sandbox.jemr.net/yql-twitter-status.xml" as table; insert into table (username, password, status) values('yqltesting','***','YQL-Twitter Test !!! ');
  • 3. Twitter http://twitter.com/yqltesting
  • (177) http://www.slideshare.net/phploveme/ignite-seoul-intro
  • : Slideshare.net select * from slideshare.transcript where url="http://www.slideshare.net/phploveme/ignite-seoul-intro"
  • YQL Syntax Interactive parallel requests Request / Data Size :
  • Community Open Data Table http://datatables.org/
  • Evan Williams,@ev
  • Thanks Developer.yahoo.com ydnkrblog.com