我可以使用临时令牌,但无法获取永久密钥!
它向我展示了这一点:
要完成此过程,请提供以下验证码:
237963d7359aa898763a615e972d20ea
问题是:我应该在哪里输入此验证码?
谢谢!
最佳答案
去做这个,
首先转到以下网址:
https://trello.com/1/authorize?key=237963d7359aa898763a615e972d20ea&name=MYAPPNAME&expiration=never&response_type=token&scope=read,write
它会返回一个不会过期的令牌,
像这样的东西:c6b832fb7101sdkjfsdkjfhsdmnfsmdnfsdmnf9d5fe53f3d8asdasdee
然后,如果将manatee.trello用作包装器,则将返回值用作令牌。
ManateeSerializer serializer = new ManateeSerializer();
TrelloConfiguration.Serializer = serializer;
TrelloConfiguration.Deserializer = serializer;
TrelloConfiguration.JsonFactory = new ManateeFactory();
TrelloConfiguration.RestClientProvider = new RestSharpClientProvider();
TrelloAuthorization.Default.AppKey = "237963d7359aa898763a615e972d20ea";
TrelloAuthorization.Default.UserToken = "c6b832fb7101sdkjfsdkjfhsdmnfsmdnfsdmnf9d5fe53f3d8asdasdee";