How to authorize and post/update Trello card from a Google docs script

前端 未结 2 1032
走了就别回头了
走了就别回头了 2021-02-06 19:16

I have a Google Docs Spreadsheet that I\'d like to use to update referenced cards in Trello. I\'ve had some success with oauth and pulling data via their HTTP API, but am stuck

2条回答
  •  别跟我提以往
    2021-02-06 19:46

    In order to get write access, you need to change the authorization url. This example works for me

      var oauthConfig = UrlFetchApp.addOAuthService("trello");
      oauthConfig.setAccessTokenUrl("https://trello.com/1/OAuthGetAccessToken");
      oauthConfig.setRequestTokenUrl("https://trello.com/1/OAuthGetRequestToken");
      oauthConfig.setAuthorizationUrl("https://trello.com/1/OAuthAuthorizeToken?scope=read,write");
    

提交回复
热议问题