hscd-0.0.3: Command line client and library for SoundCloud.com

Stabilityexperimental
MaintainerSebastián Ramírez Magrí <sebasmagri@gmail.com>
Safe HaskellSafe-Infered

Network.SoundCloud.Track

Description

Implements tracks related types and functions

Synopsis

Documentation

data DownloadJSON Source

Simple record to parse download_url from a track's JSON

Constructors

DownloadJSON 

Fields

download_url :: String
 

decodeJSON :: String -> Maybe JSONSource

Decode a JSON record from a track valid JSON string

getJSON :: String -> IO (Maybe JSON)Source

Get a JSON record given a track URL as in http://soundcloud.com/artist/track_title

decodeDownloadJSON :: String -> Maybe DownloadJSONSource

Decode a DownloadJSON record out of a track's JSON

decodeComments :: String -> Maybe [JSON]Source

Decode a Network.SoundCloud.Comment JSON list given a track id

getComments :: Int -> IO (Maybe [JSON])Source

Given the track id, get its comments as a list of Network.SoundCloud.Comment JSON

fetch :: String -> String -> IO ()Source

Fetch a downloadable track

showInfo :: String -> IO ()Source

Show general information about the track at the given URL in the standard output