Docs incorrect or hard to follow?

Tweet me

so I can make things better! 😊

Soundcloud Wrapper

Misc

API for interacting with the misc API endpoint.

Example

Tweak example to fit your tech stack and use case.
likes-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 scUrl = 'https://soundcloud.com/user-123456789'
 
const misc = await sc.misc.resolveUrl(token, url)
return res.status(200).json(misc)

resolveUrl

Returns data about the provided track that can be used to call other endpoints. E.g. trackId, userId, etc.

misc-controller.ts
// method: GET
const misc = await sc.misc.resolveUrl(token, scUrl)
PropTypeDefault
token
string
-
scUrl
number
-

More Info

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

On this page