summaryrefslogblamecommitdiff
path: root/services/googleshortener.json
blob: 9acf0101c4f374a6fdde41605119d1aa13cb2846 (plain) (tree)




























                                                                 
                          











                                                                                          
{
   "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",
            "oauth_token",
            "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"
   }
}