rdigo

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

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

Go to latest
Published: Sep 8, 2013 License: MIT Imports: 4 Imported by: 1

README

rdigo

Rdio API client in Go(lang).

Install:

go get github.com/mrjones/oauth
go get github.com/nickdirienzo/rdigo

See examples/ for example usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaybackTokenResponse

type PlaybackTokenResponse struct {
	Result string `json:"result"`
	Status string `json:"status"`
}

type Rdio

type Rdio struct {
	AccessToken *oauth.AccessToken
	// contains filtered or unexported fields
}

func AuthenticatedClient

func AuthenticatedClient(consumerKey, consumerSecret, accessToken, accessTokenSecret string) Rdio

func NewClient

func NewClient(consumerKey, consumerSecret string) Rdio

func (*Rdio) BeginAuthentication

func (r *Rdio) BeginAuthentication(callbackUrl string) (*oauth.RequestToken, string, error)

func (*Rdio) Call

func (r *Rdio) Call(method string, query map[string]string) (interface{}, error)

Authenticated only for now

func (*Rdio) CompleteAuthentication

func (r *Rdio) CompleteAuthentication(requestToken, requestTokenSecret, verifier string) error

func (*Rdio) GetPlaybackToken

func (r *Rdio) GetPlaybackToken(domain string) (PlaybackTokenResponse, error)

func (*Rdio) Search

func (r *Rdio) Search(query, types string, options map[string]string) (SearchResult, error)

type SearchResult

type SearchResult struct {
	Result SearchResults `json:"result"`
}

type SearchResults

type SearchResults struct {
	AlbumCount    int32         `json:"album_count"`
	PersonCount   int32         `json:"person_count"`
	TrackCount    int32         `json:"track_count"`
	PlaylistCount int32         `json:"playlist_count"`
	ArtistCount   int32         `json:"artist_count"`
	NumberResults int32         `json:"number_results"`
	Results       []interface{} `json:"results"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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