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

How to get a group id? #42

Closed
s2t2 opened this issue Oct 13, 2024 · 2 comments · May be fixed by #41
Closed

How to get a group id? #42

s2t2 opened this issue Oct 13, 2024 · 2 comments · May be fixed by #41

Comments

@s2t2
Copy link
Contributor

s2t2 commented Oct 13, 2024

We can use the suggested_groups method to get information about groups, including their unique identifiers.

However how can we get the identifier of any group if we know it's name or slug?

Trying to get the group id for use with the group_posts method.

@s2t2
Copy link
Contributor Author

s2t2 commented Oct 13, 2024

Oh awesome, you can use the search method with a searchtype of "groups". I had been trying "group". This isn't documented anywhere! We should document this. Will add some docstring in #41

@lxcode
Copy link
Contributor

lxcode commented Oct 13, 2024

Thanks! It is in the readme fwiw, but if you're using it as an API I can see why that would be missed.

@s2t2 s2t2 closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants