go-rdio
=======

An API client for Rdio in Go (golang)

Usage
-----

* First, get yourself an Rdio api key: http://developer.rdio.com/

* Install the library:

        go get github.com/mrjones/oauth

* Include it in your project:

        import "github.com/grantmd/go-rdio"

* Setup your Rdio client:

        c := &rdio.Client{
                ConsumerKey:    config.ConsumerKey,
                ConsumerSecret: config.ConsumerSecret,
        }

* Authenticate against the Rdio API as a user:

        auth, err := c.StartAuth()
        // Redirect the user to Rdio and get their verifier
        // ...
        auth, err = c.CompleteAuth(string(verifier))
        params := make(map[string][]string)
        body, err := c.Call("getNewReleases", params)

Examples
--------

There is an example in the `example/` directory. Copy the `example_config.go.sample` file to `example_config.go`, then `go build` and then run `./example`

go-rdio
=======

An API client for Rdio in Go (golang)

Usage
-----

* First, get yourself an Rdio api key: http://developer.rdio.com/

* Install the library:

        go get github.com/mrjones/oauth

* Include it in your project:

        import "github.com/grantmd/go-rdio"

* Setup your Rdio client:

        c := &rdio.Client{
                ConsumerKey:    config.ConsumerKey,
                ConsumerSecret: config.ConsumerSecret,
        }

* Authenticate against the Rdio API as a user:

        auth, err := c.StartAuth()
        // Redirect the user to Rdio and get their verifier
        // ...
        auth, err = c.CompleteAuth(string(verifier))
        albums, err := c.GetNewReleases()
        fmt.Println(albums)

Examples
--------

There is an example in the `example/` directory. Copy the `example_config.go.sample` file to `example_config.go`, then `go build` and then run `./example`

Update the example to reflect the eventual reality
Update the example to reflect the eventual reality
