Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.33 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.33 KB

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