We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
soundcloud.ts/readme.md
Line 97 in aa4c73c
heres what I added
/** * Gets a user's followers. */ public following = async (userResolvable: string | number, limit?: number) => { const userID = await this.resolve.get(userResolvable) let response = await this.api.getV2(`/users/${userID}/followings`, {limit: 50, offset: 0}) as any const followers: SoundcloudUser[] = [] let nextHref = response.next_href while (nextHref && (!limit || followers.length < limit)) { followers.push(...response.collection) const url = new URL(nextHref) const params = {} url.searchParams.forEach((value, key) => (params[key] = value)) response = await this.api.getURL(url.origin + url.pathname, params) nextHref = response.next_href } return followers }
The text was updated successfully, but these errors were encountered:
The readme was for v1 api (now removed).
For code suggestions, I would appreciate if you follow the procedure to open a pull request: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
Also add the followers method for v2 if you can. Thanks!
Sorry, something went wrong.
No branches or pull requests
soundcloud.ts/readme.md
Line 97 in aa4c73c
heres what I added
The text was updated successfully, but these errors were encountered: