YQL example

YQL example to proxy Twitter API

by sangdol

JavaScript

var id = 'sangdolha';
var targetUrl = '"https://api.twitter.com/1/statuses/user_timeline/' + id + '.json"';

$.getJSON('http://query.yahooapis.com/v1/public/yql',
  {
    q:      'select * from json where url=' + targetUrl,
    format: "json"
  },
  function (data) {
    console.log(data);
  }
);