Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added themoviedb3/person/credits/themoviedb3.person.credits.xml (unfi…

…ltered) via YQL Table Editor
  • Loading branch information...
commit b490471e005ed8c419cf8ca51f65c4bc75c70fbd 1 parent 639c5ce
@bromium bromium authored
Showing with 5 additions and 19 deletions.
  1. +5 −19 themoviedb3/person/credits/themoviedb3.person.credits.xml
View
24 themoviedb3/person/credits/themoviedb3.person.credits.xml
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.