comparison src/pumpio.coffee @ 8:6fd0a307850f

check empty strings and users
author Mathias Gebbe <mgebbe@intevation.de>
date Wed, 11 Jun 2014 21:58:41 +0200
parents 98a070c98982
children a52b5b244e51
comparison
equal deleted inserted replaced
7:2123f355ab68 8:6fd0a307850f
124 host = JSON.parse(host) 124 host = JSON.parse(host)
125 oauth = new OAuth.OAuth(host[0].request_token_endpoint, host[0].access_token_endpoint, host[0].client_id, host[0].client_secret, "1.0A", null, "HMAC-SHA1") 125 oauth = new OAuth.OAuth(host[0].request_token_endpoint, host[0].access_token_endpoint, host[0].client_id, host[0].client_secret, "1.0A", null, "HMAC-SHA1")
126 oauth.get noteurl, token, secret, callback 126 oauth.get noteurl, token, secret, callback
127 ], (err,result) -> 127 ], (err,result) ->
128 #console.log 'PUMP BODY:' + result 128 #console.log 'PUMP BODY:' + result
129 result = JSON.parse(result) 129 if err
130 callback null, result 130 callback null, null
131 else
132 result = JSON.parse(result)
133 callback null, result
131 return 134 return
132 135
133 isPublicActivity = (act) -> 136 isPublicActivity = (act) ->
134 recip = [] 137 recip = []
135 _.each [ 138 _.each [
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)