Skip to content

Instantly share code, notes, and snippets.

@swook
Created March 15, 2012 08:19
Show Gist options
  • Save swook/2042904 to your computer and use it in GitHub Desktop.
Save swook/2042904 to your computer and use it in GitHub Desktop.
YQL ODT accept header example
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Seon-Wook Park</author>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<inputs>
<key id='url' type='xs:string' paramType='variable' required='true' />
</inputs>
<execute><![CDATA[
response.object = y.rest(url).accept('application/json').jsonCompat('new').get().response;
y.sync();
]]></execute>
</select>
</bindings>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment