简体   繁体   中英

TrelloNet objects always returning null

ITrello trello = new Trello(AppKey);
trello.Authorize(Token);
Member me = trello.Members.Me();

for example, in this case it was to return my user but always return null, i want to know how to fix it. Thaks.

Are you sure you are passing the correct AppKey string to the Trello constructor?

Per the documentation, you have to do it like so.

ITrello trello = new Trello("[your application key]");

Where [your application key] is the key string you get from https://trello.com/1/appKey/generate (need to be logged in to Trello before you access that url.

The token in your 2nd line is also a string, not a class.

trello.Authorize("[the token the user got]");

Source: Trello.net Wiki

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM