summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2011-06-04 10:58:17 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2011-06-04 10:58:17 +0200
commit507c657b44349f0732e1479f520b00587dcc8687 (patch)
tree9950f2194004915547df7f8055d83135c2023d8f /services
parentfix json for geonames (diff)
downloadapi-description-507c657b44349f0732e1479f520b00587dcc8687.tar.gz
add Google Translate
Diffstat (limited to 'services')
-rw-r--r--services/Makefile2
-rw-r--r--services/googletranslate.json37
-rw-r--r--services/googletranslate.pngbin0 -> 6347 bytes
3 files changed, 39 insertions, 0 deletions
diff --git a/services/Makefile b/services/Makefile
index fb09daf..cf2be59 100644
--- a/services/Makefile
+++ b/services/Makefile
@@ -7,6 +7,7 @@ check: spore_validation.rx
@$(VALIDATOR) backtweet.json
@$(VALIDATOR) backtype.json
@$(VALIDATOR) github.json
+ @$(VALIDATOR) googletranslate.json
@$(VALIDATOR) ihackernews.json
@$(VALIDATOR) ohloh.json
@$(VALIDATOR) twitter.json
@@ -21,6 +22,7 @@ png: \
backtweet.png \
backtype.png \
github.png \
+ googletranslate.png \
ihackernews.png \
ohloh.png \
twitter.png
diff --git a/services/googletranslate.json b/services/googletranslate.json
new file mode 100644
index 0000000..53682df
--- /dev/null
+++ b/services/googletranslate.json
@@ -0,0 +1,37 @@
+{
+ "name" : "GoogleTranslate",
+ "version" : "0.1",
+ "base_url" : "https://www.googleapis.com/language/translate/v2",
+ "methods" : {
+ "translate" : {
+ "path" : "",
+ "method" : "GET",
+ "required_params" : [
+ "key",
+ "source",
+ "target",
+ "q"
+ ]
+ },
+ "languages" : {
+ "path" : "/languages",
+ "method" : "GET",
+ "required_params" : [
+ "key",
+ "target"
+ ]
+ },
+ "detect" : {
+ "path" : "/detect",
+ "method" : "GET",
+ "required_params" : [
+ "key",
+ "q"
+ ]
+ }
+ },
+ "authority" : "http://github.com/SPORE",
+ "meta" : {
+ "documentation" : "https://code.google.com/apis/language/translate/v2/getting_started.html"
+ }
+}
diff --git a/services/googletranslate.png b/services/googletranslate.png
new file mode 100644
index 0000000..dfb7d2b
--- /dev/null
+++ b/services/googletranslate.png
Binary files differ