Added basic support for using an OAuth token in the Authorization header.
Refactored so that authentication doesn't use class variables. Refactored all tests to be run when authenticating with either OAuth or using an API key.
Added ExpiredOAuthToken exception which is raised when an OAuth token has expired.
Fixed example of handling ExpiredOAuthToken in README.
Added support for refreshing access token using a refresh token.
README code sample fix.
Demonstrate use of auth() method in README. Use print() correctly in README.
createsend package details updated.
Use requirements.txt for pip, as well as a conditional requirements file for Python 2.5 when building on Travis CI.
Added authorize_url function and tests.
Added exchange_token() plus tests.
Small fix in README.
Added link to https://gist.github.com/jdennes/4761254 as a reference for an example app which doesn't use any OAuth libraries.
Raise an exception when refresh_token() is called and the object has no refresh token.
Ensure that errors are raised when a token exchange fails.
Hmm, so assertRaisesRegexp() is new in Python 2.7.
Travis, build.
Breaking change so that authentication is always done at the instance level. When creating objects, an auth hash is always the first argument. See README for details.
Added entry to HISTORY.md for v3.0.0 which clearly documents breaking changes.
CreateSend.refresh_token() now returns access_token, expires_in, and refresh_token.