I added some simple user authentication.
Adding initial user authentication.
Merge branch 'add_ride_streams'
Remove debug output.
Merge branch 'user_authentication'
can you remove the commented out stuff about rides?
This is starting to feel like it needs to be 3 separate lines
1 -- check for truly invalid responses (result.nil?) and maybe result["error"].blank? (raises InvalidResponseError)
2 -- AuthenticationErrors
3 -- more InvalidResponses if result[key] is nil?
I'm worried that if result comes back nil, then result["error"] will blow up
I'd like to get this merged in, but I've got a couple of questions / requests.
First, I wasn't aware that this API existed. As far as I can tell, Strava doesn't require authentication. From reading the code, it seems like the point is to get access to properties of your account rather than the token. Is that it?
Also, could you add a section to the README that explains these additions and how to use them?
Finally, I made a couple of comments on specific files / lines, I was hoping you could take a look at those.
Oops... I didn't mean to close it.
Removing commented code.
Refactoring error handling
There are now several API methods that require user authentication by including a token with the request.
http://www.strava.com/api/v1/upload/create is one example.
I'm using the user authentication in a small app that I wrote, to avoid having the user having to create yet another account. Only option I could come up with, since they don't support OpenID.
I'll update the README.
Version bump to 0.14.0
merge Andrew Olson's implementation of Streams
Merge branch 'user_authentication' of github.com:anolson/strava-api i…
Sorry about borking up the branch. I rebased to master.
The commit that you want for the README is 6de69e5