diff options
Diffstat (limited to 'services/googleshortener.json')
| -rw-r--r-- | services/googleshortener.json | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/services/googleshortener.json b/services/googleshortener.json new file mode 100644 index 0000000..6cb586a --- /dev/null +++ b/services/googleshortener.json @@ -0,0 +1,41 @@ +{ + "name" : "Google URL Shortener", + "version" : "0.1", + "base_url" : "https://www.googleapis.com/urlshortener/v1/url", + "methods" : { + "insert" : { + "path" : "", + "method" : "POST", + "required_payload" : true, + "optional_params" : [ + "key" + ] + }, + "get" : { + "path" : "", + "method" : "GET", + "required_params" : [ + "shortUrl" + ], + "optional_params" : [ + "key", + "projection" + ] + }, + "list" : { + "path" : "/history", + "method" : "GET", + "optional_params" : [ + "key", + "projection", + "start-token" + ], + "authentication" : true + } + }, + "expected_status": [ "200" ], + "authority" : "http://github.com/SPORE", + "meta" : { + "documentation" : "http://code.google.com/apis/urlshortener/v1/getting_started.html" + } +} |
