about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcmaussan <cmaussan@linkfluence.net>2012-06-27 12:49:37 +0200
committercmaussan <cmaussan@linkfluence.net>2012-06-27 12:49:37 +0200
commit3c1eba8b8f72b86d43c84de6bd7325c45c363fd3 (patch)
tree023c68de4ac14e2522481ad064efcd428d0a9e6f
parentadd data-publica (diff)
downloadapi-description-3c1eba8b8f72b86d43c84de6bd7325c45c363fd3.tar.gz
added a bunch of specs written by linkfluence
-rw-r--r--services/bitly.json20
-rw-r--r--services/facebook_graph.json55
-rw-r--r--services/gnip.json21
-rw-r--r--services/googlemaps.json14
-rw-r--r--services/klout.json12
-rw-r--r--services/topsy.json21
-rw-r--r--services/twitter_search.json20
7 files changed, 163 insertions, 0 deletions
diff --git a/services/bitly.json b/services/bitly.json
new file mode 100644
index 0000000..9a717c7
--- /dev/null
+++ b/services/bitly.json
@@ -0,0 +1,20 @@
+{
+"base_url": "http://api.bitly.com",
+"version":"0.1",
+"methods":{
+  "lookup":{
+    "required_params":["login","apiKey","url"],
+    "optional_params":["format"],
+    "expected_status":["200"],
+    "path":"/v3/lookup",
+    "method":"GET"
+  },
+  "clicks":{
+    "required_params":["login","apiKey"],
+    "optional_params":["shortUrl","hash","format"],
+    "expected_status":["200"],
+    "path":"/v3/clicks",
+    "method":"GET"
+  }
+}
+}
diff --git a/services/facebook_graph.json b/services/facebook_graph.json
new file mode 100644
index 0000000..f3d25b6
--- /dev/null
+++ b/services/facebook_graph.json
@@ -0,0 +1,55 @@
+{
+"base_url": "http://graph.facebook.com/",
+"version":"0.1",
+"methods":{
+   "shares":{
+    "required_params":["url"],
+    "expected_status":["200"],
+    "path":"/:url",
+    "method":"GET"
+  },
+   "object":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id",
+    "method":"GET"
+  },
+   "posts":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id/posts",
+    "method":"GET"
+  },
+   "statuses":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id/statuses",
+    "method":"GET"
+  },
+   "feed":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id/feed",
+    "method":"GET"
+  },
+   "likes":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id/likes",
+    "method":"GET"
+  },
+   "comments":{
+    "required_params":["access_token","id"],
+    "expected_status":["200"],
+    "path":"/:id/comments",
+    "method":"GET"
+  },
+   "search":{
+    "required_params":["q"],
+    "optional_params":["access_token","type","field","until","since","limit","offset","__after_id"],
+    "expected_status":["200"],
+    "path":"/search",
+    "method":"GET"
+  }
+}
+}
diff --git a/services/gnip.json b/services/gnip.json
new file mode 100644
index 0000000..f529c2d
--- /dev/null
+++ b/services/gnip.json
@@ -0,0 +1,21 @@
+{
+"version":"0.1",
+"authentication":"1",
+"methods":{
+  "get_rules":{
+    "required_params":["account","publisher","format"],
+    "expected_status":["200"],
+    "authentication":"1",
+    "path":"/accounts/:account/publishers/:publisher/streams/track/prod/rules.:format",
+    "method":"GET"
+  },
+  "set_rules":{
+    "required_params":["account","publisher","format"],
+    "optional_params":["_method"],
+    "expected_status":["201","202"],
+    "authentication":"1",
+    "path":"/accounts/:account/publishers/:publisher/streams/track/prod/rules.:format",
+    "method":"POST"
+  }
+}
+}
diff --git a/services/googlemaps.json b/services/googlemaps.json
new file mode 100644
index 0000000..f408f28
--- /dev/null
+++ b/services/googlemaps.json
@@ -0,0 +1,14 @@
+{
+    "base_url" : "http://maps.googleapis.com/maps/api",
+    "methods" : {
+        "geocode" : {
+            "path" : "/geocode/:format",
+            "method" : "GET",
+            "required_params" : [
+                "format",
+                "address",
+                "sensor"
+            ]
+        }
+    }
+}
diff --git a/services/klout.json b/services/klout.json
new file mode 100644
index 0000000..c5b23a0
--- /dev/null
+++ b/services/klout.json
@@ -0,0 +1,12 @@
+{
+"base_url":"http://api.klout.com",
+"version":"0.1",
+"methods":{
+  "klout":{
+    "required_params":["key","users","format"],
+    "expected_status":["200"],
+    "path":"/1/klout.:format",
+    "method":"GET"
+  }
+}
+}
diff --git a/services/topsy.json b/services/topsy.json
new file mode 100644
index 0000000..f185c09
--- /dev/null
+++ b/services/topsy.json
@@ -0,0 +1,21 @@
+{
+    "name" : "Topsy",
+    "version" : "0.1",
+    "base_url" : "http://otter.topsy.com/",
+    "methods" : {
+        "stats": {
+        "optional_params" : [],
+        "required_params" : ["url","format"],
+        "expected_status" : ["200"],
+        "path" : "/stats.:format",
+        "method" : "GET"
+        },
+        "credit": {
+        "optional_params" : [],
+        "required_params" : [],
+        "expected_status" : ["200"],
+        "path" : "/credit.:format",
+        "method" : "GET"
+        }        
+    }
+}
diff --git a/services/twitter_search.json b/services/twitter_search.json
new file mode 100644
index 0000000..7f8e559
--- /dev/null
+++ b/services/twitter_search.json
@@ -0,0 +1,20 @@
+{
+    "base_url" : "http://search.twitter.com/",
+    "methods" : {
+        "search" : {
+            "path" : "/search.:format",
+            "method" : "GET",
+            "required_params" : [
+                "format",
+                "q"
+            ],
+            "optional_params" : [
+                "geocode",
+                "lang",
+                "locale",
+                "page",
+                "result_type"
+             ]
+        }
+    }
+}