Bot releases are visible (Hide)
Fixed an error with prepareURL
Published by zackradisic almost 4 years ago
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
})
soundcloudapi.API has the new properties StripMobilePrefix and ConvertFirebaseURLs which set behaviour for converting URLs.
sc.StripMobilePrefix = true
sc.ConvertFirebaseURLs = true
Published by zackradisic almost 4 years ago
soundcloudapi.API.GetDownloadURL()
soundcloudapi.StripMobilePrefix()
soundcloudapi.ConvertFirebaseURL()
https://soundcloud.app.goo.gl/xxxxxx
)Published by zackradisic almost 4 years ago