Created
July 8, 2012 05:08
-
-
Save mikeschinkel/3069508 to your computer and use it in GitHub Desktop.
Quick & Dirty Mockup of a JSON api discovery document to overlay Twitter's API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api_name":"Twitter API", | |
"arguments":[ | |
{"name":"query", "value":"input"}, | |
{"name":"status_id", "value":"response"}, | |
{"name":"format", | |
"value":[ | |
{"name":"json","description":"Javascript Object Notation (JSON)"}, | |
{"name":"xml","description":"Extensible Markup Language (XML)"} | |
] | |
} | |
], | |
"resources":[ | |
{ "name":"search", | |
"url":"http://search.twitter.com/search.{format}?q={query}", | |
"data":[ | |
{ "name":"screen_name", "pointer":"/results/*/from_user" }, | |
{ "name":"profile_url", "pointer":"/results/*/profile_image_url" }, | |
{ "name":"status_id", "pointer":"/results/*/id" } | |
] | |
}, | |
{ "name":"status", | |
"url":"https://api.twitter.com/1/statuses/{status_id}.{format}" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment