sarumont / py-trello

Python API wrapper around Trello's API
BSD 3-Clause "New" or "Revised" License
945 stars 330 forks source link

How to get auth'ed user's information? #277

Closed unformatt closed 5 years ago

unformatt commented 5 years ago

How can I get the Oauth'ed user's info? Username, etc?

The only way I can see now is to create a board, check the actions on that board, get the user name from the action, then delete the board.

unformatt commented 5 years ago

Out of desperation, I found that apparently api.get_member('me') or api.get_member('you') work. Why you ???

https://api.trello.com/1/members/you or https://api.trello.com/1/members/me is not mentioned in the Trello API docs.