Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend GetTeamInfo API to accept team argument #980

Closed
ed-wp opened this issue Oct 1, 2021 · 0 comments · Fixed by #1118
Closed

Extend GetTeamInfo API to accept team argument #980

ed-wp opened this issue Oct 1, 2021 · 0 comments · Fixed by #1118

Comments

@ed-wp
Copy link

ed-wp commented Oct 1, 2021

https://api.slack.com/methods/team.info

team | string | to get info on, if omitted, will return information about the current  team. Will only return team that the authenticated token is allowed to see through external shared channels

The library omits this by default, but does not provide a way to specify another team.

Current:

func (api *Client) GetTeamInfo() (*TeamInfo, error) 

Proposed:

func (api *Client) GetTeamInfo(team string) (*TeamInfo, error) 

Expected behaviors:

If `team` == "" omit `team` from url.values
If `team` != "" add `team` to url.values
@ed-wp ed-wp changed the title Extent GetTeamInfo API to accept team argument Extend GetTeamInfo API to accept team argument Oct 1, 2021
@kanata2 kanata2 linked a pull request Oct 31, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants