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

Add reactions option in activity endpoint #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

homerzhm
Copy link

@homerzhm homerzhm commented Nov 17, 2022

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

We are using GetStream activity service. We want to fetch specific activity by Id.

When we using this SDK, it provide a function to get it.

However, we also want the activities data come back with reaction count, for example: Number of Like, Number of Comments.

I follow the same pattern for FlatFeed class.

I create ActivityReactionsOptions with the options that list in Endpoints. Activities Section of following link
https://getstream.io/docs_rest/

and also create ActivityEndpointParameters to make sure there is no mistype of parameter string.

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 this pull request may close these issues.

1 participant