Skip to content

Releases: zackradisic/soundcloud-api

v0.1.4

13 Jan 19:59
feb9f1c
Compare
Choose a tag to compare

Fixed an error with prepareURL

v0.1.3

11 Jan 20:02
Compare
Choose a tag to compare

New

APIOptions

soundcloudapi.New() now accepts an APIOptions struct which allows you to configure the soundcloudapi.API struct.

sc, err := soundcloudapi.New(soundcloudapi.APIOptions{
    ClientID: "dsfsdfsfdsfd", // optional
    HTTPClient: http.DefaultClient, // specify a http client to make requests with
    StripMobilePrefix: true, // convert mobile URLs to regular URLs
    ConvertFirebaseURLs: true // convert firebase URLs to regular urls
})

New soundcloudapi.API Properties

soundcloudapi.API has the new properties StripMobilePrefix and ConvertFirebaseURLs which set behaviour for converting URLs.

sc.StripMobilePrefix = true
sc.ConvertFirebaseURLs = true

v0.1.2

06 Jan 12:33
Compare
Choose a tag to compare

New

v0.1.1

21 Dec 20:11
Compare
Choose a tag to compare

New

  • IsPersonalizedTrackURL(url string)
  • IsSearchURL(url string)