Difference between revisions of "YTMND:API:Response Formats"

From YTMND
Jump to: navigation, search
 
Line 1: Line 1:
 
==Response Formats==
 
==Response Formats==
{| width="50%" style="text-align:left; background-color:transparent; border: solid 1px #c30"
+
{| width="70%" style="text-align:left; background-color:transparent; border: solid 1px #c30"
 
|- style="background-color:#c30; color:#fff;"
 
|- style="background-color:#c30; color:#fff;"
 
! Type
 
! Type
Line 11: Line 11:
 
| http://api.ytmnd.com/site/1/basic?return=json
 
| http://api.ytmnd.com/site/1/basic?return=json
 
|- style="background-color:#fbfbfb"
 
|- style="background-color:#fbfbfb"
| JavaScript
+
| [[wiki:JavaScript|JavaScript]]
 
| http://api.ytmnd.com/site/1/basic?return=js&callback=yourfunctionname
 
| http://api.ytmnd.com/site/1/basic?return=js&callback=yourfunctionname
 +
|- style="background-color:#fbfbfb"
 +
| [[wiki:Serialized PHP|Serialized PHP]]
 +
| http://api.ytmnd.com/site/1/basic?return=phps
 
|}
 
|}

Revision as of 02:49, October 13, 2007

Response Formats

Type Example
XML (default) http://api.ytmnd.com/site/1/basic?return=xml
JSON http://api.ytmnd.com/site/1/basic?return=json
JavaScript http://api.ytmnd.com/site/1/basic?return=js&callback=yourfunctionname
Serialized PHP http://api.ytmnd.com/site/1/basic?return=phps