oAuth in google script for bitbucket API rest -
i have problem google script request bitbucket api oauth
here code :
var consumerkey = '***'; var consumersecret = '***'; var request_token_url = 'https://bitbucket.org/!api/1.0/oauth/request_token'; var acces_token_url = 'https://bitbucket.org/!api/1.0/oauth/access_token'; var authorize_url = 'https://bitbucket.org/!api/1.0/oauth/authenticate'; var oauthconfig = urlfetchapp.addoauthservice('bitbucket'); oauthconfig.setconsumerkey(consumerkey); oauthconfig.setconsumersecret(consumersecret); oauthconfig.setaccesstokenurl(acces_token_url); oauthconfig.setrequesttokenurl(request_token_url); oauthconfig.setauthorizationurl(authorize_url); var options = { 'oauthservicename' : 'bitbucket', 'oauthusetoken' : 'always' }; var url = 'https://bitbucket.org/api/1.0/repositories/myurl'; the error : error - oauth error
thanks
i think exclamation marks in oauth urls should not there.
Comments
Post a Comment