Mercurial > pumpbridge
diff src/google.coffee @ 3:98a070c98982
add Twitter support
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Thu, 05 Jun 2014 18:02:25 +0200 |
parents | b73191efc65b |
children | f352c74a6a5b |
line wrap: on
line diff
--- a/src/google.coffee Thu Jun 05 11:09:18 2014 +0200 +++ b/src/google.coffee Thu Jun 05 18:02:25 2014 +0200 @@ -1,10 +1,9 @@ # Copyright (C) 2014 by Intevation GmbH # Author: Mathias Gebbe <mgebbe@intevation.de> # -# This file is Free Software under the Apache License, Version 2.0 -# (the "License"); and comes with ABSOLUTELY NO WARRANTY! -# You may not use this file except in compliance with the License. -# See LICENSE for details. +# This file is Free Software under the Apache License, Version 2.0; +# and comes with NO WARRANTY! +# See the documentation coming with pumpbridge for details. https = require("https") async = require("async") @@ -195,9 +194,9 @@ getRefreshToken = (user, callback) -> if user.oauth_token.indexOf(';') isnt -1 token = user.oauth_token.substr(0,user.oauth_token.indexOf(';')) + code = user.oauth_token.substr(user.oauth_token.indexOf(';')+1 ,user.oauth_token.length) else token = user.oauth_token - code = user.oauth_token.substr(user.oauth_token.indexOf(';')+1 ,user.oauth_token.lenght) data = "" post_data = querystring.stringify( "code": code