diff src/google.coffee @ 10:ccf1d9e741bd

corrected google apikey query, removed facebook query language
author Mathias Gebbe <mgebbe@intevation.de>
date Wed, 11 Jun 2014 23:43:28 +0200
parents 2123f355ab68
children a52b5b244e51
line wrap: on
line diff
--- a/src/google.coffee	Wed Jun 11 22:34:20 2014 +0200
+++ b/src/google.coffee	Wed Jun 11 23:43:28 2014 +0200
@@ -22,7 +22,6 @@
 
 bridgeid = config.bridgeid
 interval = config.interval
-API_KEY = config.gpAPI_KEY
 CLIENTID = config.gpCLIENTID
 CLIENTSECRET = config.gpCLIENTSECRET
 
@@ -135,7 +134,7 @@
   options =
    host: "www.googleapis.com"
    port: 443
-   path: "/plus/v1/people/me/people/visible?key=" + API_KEY + "&"
+   path: "/plus/v1/people/me/people/visible?key=" + CLIENTID + "&"
    headers:
      "Authorization": "Bearer " + token
 
@@ -182,7 +181,7 @@
   options =
    host: "www.googleapis.com"
    port: 443
-   path: "/plus/v1/people/" + targetid + "/activities/public?maxResults="+max_results+"&key=" + API_KEY
+   path: "/plus/v1/people/" + targetid + "/activities/public?maxResults="+max_results+"&key=" + CLIENTID
    headers:
      "Authorization": "Bearer " + token
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)