Adaptly/adaptly_pi — pull request #5 by nbryan (2012-07-09 20:31:53+00:00)
Title: Auth module for getting an access token with an api key

/cc @flah00

I'm not sure how much I do or don't like this bit, so I'd like your comments. To use HttpClient I've had to specify a different base_url as the auth API has a distinct path from the rest. I'm not sure if it's the best idea to try and shoehorn it in there or to just make it separate. It doesn't need the OAuth functionality, though it doesn't seem to hurt to leave it in there.

I considered putting the logic directly in the AdaptlyPI module, and I could still be convinced that's a better place to put it. But, in the interest of slightly more modular code, I made it a separate module and just made a convenience method in AdaptlyPI.

The README will need a little updating as well as the version number before this is ready to go.