soundcloud

package module
v0.0.0-...-fc94310 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

README ΒΆ

Welcome to go-soundcloud πŸ‘‹ *** Work In Progress ***

GitHub code size in bytes GitHub go.mod Go version GitHub closed pull requests GitHub pull requests GitHub issues GitHub contributors

go-soundcloud is a Go client library for accessing the SoundCloud API

🚚 Install

go get github.com/tsirysndr/go-soundcloud

πŸš€ Usage

Import the package into your project.

import "github.com/tsirysndr/go-soundcloud"

Construct a new SoundCloud client, then use the various services on the client to access different parts of the SoundCloud API. For example:

client := soundcloud.NewClient()
track, _ := client.Track.Get("13158665")

✨ Coverage

Currently the following services are supported:

  • Get SoundCloud User
  • Get SoundCloud Track
  • Get list of SoundCloud Tracks
  • Get Comments for the Track
  • Get comment for the track
  • Get users who favorited the track
  • Get user who has favorited to the track
  • Get secret token of the track
  • Get list of Playlists
  • Get Playlist
  • Get secret token of the playlist
  • Get list of Comments
  • Get comment
  • Get information about the authenticated user
  • Get list of tracks of the user
  • Get list of playlists (sets) of the user
  • Get list of users who are followed by the user
  • Get user who is followed by the user
  • Get list of users who are following the user
  • Get user who is following the user
  • Get list of comments from this user
  • Get list of tracks favorited by the user
  • Get track favorited by the user
  • Get list of web profiles
  • Get list dashboard activities
  • Get list of connected external profiles

Author

πŸ‘€ Tsiry Sandratraina

Show your support

Give a ⭐️ if this project helped you!

Documentation ΒΆ

Index ΒΆ

Constants ΒΆ

This section is empty.

Variables ΒΆ

This section is empty.

Functions ΒΆ

This section is empty.

Types ΒΆ

type ActivityService ΒΆ

type ActivityService service

type AppService ΒΆ

type AppService service

type Client ΒΆ

type Client struct {
	Activity   *ActivityService
	App        *AppService
	Comment    *CommentService
	Connection *ConnectionService
	Me         *MeService
	Playlist   *PlaylistService
	Track      *TrackService
	User       *UserService
	// contains filtered or unexported fields
}

func NewClient ΒΆ

func NewClient() *Client

type CommentService ΒΆ

type CommentService service

type ConnectionService ΒΆ

type ConnectionService service

type MeService ΒΆ

type MeService service

type Params ΒΆ

type Params struct {
	ClientID string `url:"client_id,omitempty"`
}

type Playlist ΒΆ

type Playlist struct {
	ArtworkURL    string  `json:"artwork_url,omitempty"`
	CreatedAt     string  `json:"created_at,omitempty"`
	Description   string  `json:"description,omitempty"`
	Downloadable  bool    `json:"downloadable,omitempty"`
	Duration      int     `json:"duration,omitempty"`
	EAN           string  `json:"ean,omitempty"`
	EmbeddableBy  string  `json:"embeddable_by,omitempty"`
	Genre         string  `json:"genre,omitempty"`
	ID            int     `json:"id,omitempty"`
	Kind          string  `json:"kind,omitempty"`
	LabelID       int     `json:"label_id,omitempty"`
	LabelName     string  `json:"label_name,omitempty"`
	LastModified  string  `json:"last_modified,omitempty"`
	License       string  `json:"license,omitempty"`
	LikesCount    int     `json:"likes_count,omitempty"`
	Permalink     string  `json:"permalink,omitempty"`
	PermalinkURL  string  `json:"permalink_url,omitempty"`
	PlaylistType  string  `json:"playlist_type,omitempty"`
	PurchaseTitle string  `json:"purchase_title,omitempty"`
	PurchaseURL   string  `json:"purchase_url,omitempty"`
	Release       int     `json:"release,omitempty"`
	ReleaseDay    int     `json:"release_day,omitempty"`
	ReleaseMonth  int     `json:"release_month,omitempty"`
	ReleaseYear   int     `json:"release_year,omitempty"`
	RepostsCount  int     `json:"reposts_count,omitempty"`
	Sharing       string  `json:"sharing,omitempty"`
	Streamable    bool    `json:"streamable,omitempty"`
	TagList       string  `json:"tag_list,omitempty"`
	Title         string  `json:"title,omitempty"`
	TrackCount    int     `json:"track_count,omitempty"`
	Tracks        []Track `json:"tracks,omitempty"`
	URI           string  `json:"uri,omitempty"`
	User          *User   `json:"user,omitempty"`
}

type PlaylistService ΒΆ

type PlaylistService service

func (*PlaylistService) Get ΒΆ

func (s *PlaylistService) Get(ID string) (*Playlist, error)

func (*PlaylistService) List ΒΆ

func (s *PlaylistService) List() ([]Playlist, error)

type Track ΒΆ

type Track struct {
	ArtworkURL          string `json:"artwork_url,omitempty"`
	Bpm                 int    `json:"bpm,omitempty"`
	CommentCount        int    `json:"comment_count,omitempty"`
	Commentable         bool   `json:"commentable,omitempty"`
	CreatedAt           string `json:"created_at,omitempty"`
	Description         string `json:"description,omitempty"`
	DownloadCount       int    `json:"download_count,omitempty"`
	DownloadURL         string `json:"download_url,omitempty"`
	Downloadable        bool   `json:"downloadable,omitempty"`
	Duration            int    `json:"duration,omitempty"`
	EmbeddableBy        string `json:"embeddable_by,omitempty"`
	FavoritingsCount    int    `json:"favoritings_count,omitempty"`
	Genre               string `json:"genre,omitempty"`
	ID                  int    `json:"id,omitempty"`
	ISRC                string `json:"isrc,omitempty"`
	KeySignature        string `json:"key_signature,omitempty"`
	Kind                string `json:"kind,omitempty"`
	LabelID             int    `json:"label_id,omitempty"`
	LabelName           string `json:"label_name,omitempty"`
	LastModified        string `json:"last_modified,omitempty"`
	License             string `json:"license,omitempty"`
	MonetizationModel   string `json:"monetization_model,omitempty"`
	OriginalContentSize int    `json:"original_content_size,omitempty"`
	OriginalFormat      string `json:"original_format,omitempty"`
	Permalink           string `json:"permalink,omitempty"`
	PermalinkURL        string `json:"permalink_url,omitempty"`
	PlaybackCount       int    `json:"playback_count,omitempty"`
	Policy              string `json:"policy,omitempty"`
	PurchaseTitle       string `json:"purchase_title,omitempty"`
	PurchaseURL         string `json:"purchase_url,omitempty"`
	Release             int    `json:"release,omitempty"`
	ReleaseDay          int    `json:"release_day,omitempty"`
	ReleaseMonth        int    `json:"release_month,omitempty"`
	ReleaseYear         int    `json:"release_year,omitempty"`
	RepostsCount        int    `json:"reposts_count,omitempty"`
	Sharing             string `json:"sharing,omitempty"`
	State               string `json:"state,omitempty"`
	StreamURL           string `json:"stream_url,omitempty"`
	Streamable          bool   `json:"streamable,omitempty"`
	TagList             string `json:"tag_list,omitempty"`
	Title               string `json:"title,omitempty"`
	TrackType           string `json:"track_type,omitempty"`
	URI                 string `json:"uri,omitempty"`
	User                *User  `json:"user,omitempty"`
	UserID              int    `json:"user_id,omitempty"`
	VideoURL            string `json:"video_url,omitempty"`
	WaveformURL         string `json:"waveform_url,omitempty"`
}

type TrackService ΒΆ

type TrackService service

func (*TrackService) Get ΒΆ

func (s *TrackService) Get(ID string) (*Track, error)

func (*TrackService) List ΒΆ

func (s *TrackService) List() ([]Track, error)

type User ΒΆ

type User struct {
	AvatarURL    string `json:"avatar_url,omitempty"`
	ID           int    `json:"id,omitempty"`
	Kind         string `json:"kind,omitempty"`
	LastModified string `json:"last_modified,omitempty"`
	Permalink    string `json:"permalink,omitempty"`
	PermalinkURL string `json:"permalink_url,omitempty"`
	URI          string `json:"uri,omitempty"`
	Username     string `json:"username,omitempty"`
}

type UserService ΒΆ

type UserService service

Directories ΒΆ

Path Synopsis
example

Jump to

Keyboard shortcuts

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