How to get a permanent user token for writes using the Trello API?

后端 未结 3 1580
攒了一身酷
攒了一身酷 2020-12-23 10:02

I\'m trying to write an app that updates my Trello cards with the API. How do I get a permanent user token for the app to write to my Trello board?

Thanks

3条回答
  •  感动是毒
    2020-12-23 10:20

    You can do this in one of 2 ways -

    Direct the user to the below address. This will direct the user to a page that has a token that she can copy and paste back to you. The important bit is that you ask for expiration = never and scope = read,write

    https://trello.com/1/authorize?key=substitutewithyourapplicationkey&scope=read%2Cwrite&name=My+Application&expiration=never&response_type=token
    

    Or use OAuth (harder) to automate the request for an access token. Read more in the documentation.

    Once you have the token, you can make any API call you'd like.

提交回复
热议问题