Docs incorrect or hard to follow?

Tweet me

so I can make things better! 😊

Soundcloud Wrapper

Me

API for interacting with the me API endpoint.

Example

Tweak example to fit your tech stack and use case.
me-controller.ts
import SoundCloud from "soundcloud-wrapper"
 
const sc = new SoundCloud(
  process.env.CLIENT_ID,
  process.env.CLIENT_SECRET,
  process.env.REDIRECT_URI
  process.env.PKCE_CODE_VERIFIER
)
 
// get auth token stored in db
// check the auth flow guide if you need to generate a token
const token = await Token.find({userId: 123456789})
 
const me = await sc.me.me(token)
return res.status(200).json(me)

me

Gets information about the authenticated user.

me-controller.ts
// method: GET
const me = await sc.me.me(token)
PropTypeDefault
token
string
-

getActivity

Gets activity related to the authenticated user.

me-controller.ts
// method: GET
const me = await sc.me.getActivity(token)
PropTypeDefault
token
string
-

getTrackActivity

Gets tracks recently interacted with by the the authenticated user.

me-controller.ts
// method: GET
const me = await sc.me.getTrackActivity(token)
PropTypeDefault
token
string
-

getTrackLikes

Gets tracks liked by the the authenticated user.

me-controller.ts
// method: GET
const me = await sc.me.getTrackLikes(token)
PropTypeDefault
token
string
-

getPlaylistLikes

Gets playlists liked by the the authenticated user.

me-controller.ts
// method: GET
const me = await sc.me.getPlaylistLikes(token)
PropTypeDefault
token
string
-

getFollowings

Gets people authenticated user is following.

me-controller.ts
// method: GET
const me = await sc.me.getFollowings(token)
PropTypeDefault
token
string
-

getFollowingsTracks

Gets peoples tracks authenticated user is following

me-controller.ts
// method: GET
const me = await sc.me.getFollowingsTracks(token)
PropTypeDefault
token
string
-

followUser

Follows specified user.

me-controller.ts
// method: PUT
const me = await sc.me.followUser(token, userId)
PropTypeDefault
token
string
-
userId
string
-

unfollowUser

Unfollows specified user.

me-controller.ts
// method: DELETE
const me = await sc.me.unfollowUser(token, userId)
PropTypeDefault
token
string
-
userId
string
-

More Info

For more info on endpoints see the official Soundcloud API docs.

On this page