Skip to content

AlexJuca/soundcloud-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoundCloud Go API Wrapper

build

Description

This is the SoundCloud API Wrapper written in Go. It provides methods to handle authorization and execution of HTTP Calls. I built this after my 5th day learning Go so there might be lots of silly beginner mistakes, if you do find one please share some of your wisdom with me. :)

Features

Currently allows users to fetch soundcloud tracks, users, groups and playlists and their associated data as json

Examples

    # Register a client with your YOUR_CLIENT_ID as ClientId
    client := soundclient.SoundCloud{ ClientId: YOUR_CLIENT_ID,
                                      ClientSecret: YOUR_SECRET_KEY}
                                      
    // Retrieve a track by id as json object
    song := client.Tracks("13158")
    
    // Get track title
    title, _ := song.GetString("title")
    # Get track desccription
    description, _ := song.GetString("description")
    
    // Print track information
    fmt.Println("Title ->", title)
    fmt.Println("Description ->", description)

Developed by

Donate with Kamba to keep this project active

Screenshot

About

A Go wrapper to the soundcloud API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages