summaryrefslogtreecommitdiff
path: root/services/googleshortener.json
blob: 20adf2227e7f35d7b015f4e477cc4764b0a1d450 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
   "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",
         "headers" : {
            "authorization" : "OAuth oauth_consumer_key=\":oauth_consumer_key\", oauth_nonce=\":oauth_nonce\", oauth_signature_method=\":oauth_signature_method\", oauth_timestamp=\":oauth_timestamp\", oauth_token=\":oauth_token\", oauth_version=\":oauth_version\", oauth_signature=\":oauth_signature\""
         },
         "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"
   }
}