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

GetPlays() add filters #3

Merged
merged 5 commits into from
Oct 1, 2024
Merged

GetPlays() add filters #3

merged 5 commits into from
Oct 1, 2024

Conversation

raphink
Copy link
Member

@raphink raphink commented Sep 30, 2024

This adds optional filters to the GetPlays() function

Sample usage:

plays, total, err := instruqtClient.GetPlays(
	time.Now().AddDate(0, 0, -30), time.Now(),
	10, 0,
	instruqt.WithTrackIDs("abcdef"),
	instruqt.WithUserIDs("efjkelrg"),
	instruqt.WithPlayType(instruqt.PlayTypeNormal),
)

Signed-off-by: Raphaël Pinson [email protected]

Signed-off-by: Raphaël Pinson <[email protected]>
Signed-off-by: Raphaël Pinson <[email protected]>
Signed-off-by: Raphaël Pinson <[email protected]>
Copy link

github-actions bot commented Oct 1, 2024

Coverage has decreased from 83.6% to 80.6% ⚠️

@raphink raphink added the enhancement New feature or request label Oct 1, 2024
@raphink raphink merged commit 1af7f3c into main Oct 1, 2024
2 checks passed
@raphink raphink deleted the getplays branch October 3, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant