soundcloud

package
v0.0.0-...-bbaed04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientID = ""

ClientID for SoundCloud

Functions

func GetTrackIDByURL

func GetTrackIDByURL(trackURL string) (string, error)

GetTrackIDByURL retrieves the trackID of a SoundCloud track by its URL or path

Types

type SearchResult

type SearchResult struct {
	Collection   []Track `json:"collection"`
	TotalResults int     `json:"total_results"`
}

SearchResult represents the the response when a search is performed

type Track

type Track struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	Media        media  `json:"media"`
	ArtworkURL   string `json:"artwork_url"`
	PermalinkURL string `json:"permalink_url"`
	MediaURL     string
	Artist       artist `json:"artist"`
}

Track represents the track from SoundCloud

func GetTrack

func GetTrack(trackID string, quality string) (Track, error)

GetTrack returns the SoundCloud track by ID

func GetTrackByInput

func GetTrackByInput(input string, quality string) (Track, error)

func SearchTracks

func SearchTracks(input string, limit string) ([]Track, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL