Skip to content

Commit

Permalink
Added themoviedb3/person/credits/themoviedb3.person.credits.xml (unfi…
Browse files Browse the repository at this point in the history
…ltered) via YQL Table Editor
  • Loading branch information
bromium committed Oct 15, 2012
1 parent 639c5ce commit b490471
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions themoviedb3/person/credits/themoviedb3.person.credits.xml
Expand Up @@ -8,32 +8,18 @@
<apiKeyURL></apiKeyURL>
</meta>
<bindings>
<select itemPath="" produces="XML">
<select itemPath="" produces="JSON">
<urls>
<url>http://api.themoviedb.org/3/person/{nick}/credits</url>
<url>http://api.themoviedb.org/3/person/{id}/credits</url>
</urls>
<inputs>
<key id="nick" type="xs:string" paramType="path" required="true" />
<key id="api_key" type="xs:string" paramType="variable" required="true" />
<key id="Accept" type="xs:string" paramType="header" required="true" />
<key id="id" type="xs:string" paramType="path" required="true" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
<key id="language" type="xs:string" paramType="query" required="false" />
</inputs>
<execute>
<![CDATA[
// response.object = y.rest(url).accept('application/json').jsonCompat('new').get().response;
// y.sync();
// request.accept('application/json').contentType('application/json');
// request.accept('application/json');
// <key id="Accept" type="xs:string" paramType="header" const="true" default="application/json" />
// const="true" default="application/json"
// y.rest('http://api.themoviedb.org/3/person/190/credits').accept('application/json').get().response
response.object = y.rest(request.url).accept('application/json').jsonCompat('new').get().response;
]]>
</execute>
Expand Down

0 comments on commit b490471

Please sign in to comment.