Created
January 17, 2018 14:00
-
-
Save ruggi/61c9e4af55c2f9e49f4a6ccbea59832c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WithFollowingFilter adds the filter parameter to API calls, used when retrieving | |
// following feeds, allowing the check whether certain feeds are being followed. | |
func WithFollowingFilter(ids ...string) FollowingOption { | |
return FollowingOption{makeRequestOption("filter", strings.Join(ids, ","))} | |
} | |
// WithFollowingLimit limits the number of followings in the response to the provided limit. | |
func WithFollowingLimit(limit int) FollowingOption { | |
return FollowingOption{withLimit(limit)} | |
} | |
// WithFollowingOffset returns followings starting from the given offset. | |
func WithFollowingOffset(offset int) FollowingOption { | |
return FollowingOption{withOffset(offset)} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment