Skip to main content

A simple Python wrapper for Rdio's API

Project description

pyrdio
======

A simple Python wrapper for Rdio's API

Usage
=====

Authentication
--------------

Some endpoints require authentication.
To get an access token, start by initializing a client, for example:

.. code-block:: python

>>> rdio = RdioClient(settings.RDIO_CONSUMER_KEY,
>>> settings.RDIO_CONSUMER_SECRET,
>>> settings.RDIO_REDIRECT_URI)

Redirect user to auth URL:

.. code-block:: python

>>> print rdio.get_authorize_url()

In your authentication handler, verify the request by passing the request url, and request an access token:

.. code-block:: python

>>> rdio.verify_request_token(url)
>>> access_token = rdio.request_access_token()

API Endpoints`
-------------

We're currently supporting the following endpoints:

- addToPlaylist
- createPlaylist
- currentUser
- getTracksByISRC
- search
- tracks

Feel free to add more an send a pull requests!
For questions: hery at hi dot fi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrdio-1.0.9.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

pyrdio-1.0.9-py2-none-any.whl (3.7 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page