adlio / trello

Trello API wrapper for Go
MIT License
219 stars 71 forks source link

Add GetMyMember function #71

Closed surminus closed 3 years ago

surminus commented 3 years ago

This is useful if you want to be able to quickly return details about the user making API calls.

I didn't add any tests since there's no logic.

TJM commented 3 years ago

Is this much different than just using client.GetMember("me")

surminus commented 3 years ago

Not really. The reason I raised it is because I couldn't find the "me" behaviour documented anywhere, so thought it was useful & a small change.

TJM commented 3 years ago

You may be right, the only reference I can find is here: https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/ ... It seems like that would be a good addition to the documentation.