Two weeks has passed since GSoC coding season started. I am working this year for organisation LabLua in building Strava Client Library.The work is progressing fast and i am updating the progress here.My mentor Andre has helped me a lot to reach here.
Since its a Client for REST API , i decided to start with the basic REST functionalities.(GET,POST,PUT,DELETE). Generic functions has been designed for these basic functions. Lua requests module made it extremely easy to write these functions.
Next step was to setup functions for authentication.Strava uses OAuth2 as the authentication protocol. It allows external applications to request authorization to a user’s private data without requiring their Strava username and password. It allows users to grant and revoke API access on a per-application basis and keeps users’ authentication details safe.
The authentication sends an authorize request. ClientId and Client_secret_key is required to send request for token. Once token is retrieved it is used with all other requests.
The scope parameter is used to define access rights like read,write etc.
Strava is the site for athletes. Its API has set of functions that helps to retrieve the details of athlete .Following functions has been created for this in the library.
- -Retrieve current Athlete
- -Retrieve another athlete
- -Update current Athlete
- -Get athlete zones
- -Get athlete K/QOM
- -Get athlete stats
- -List athlete friends
- -List athlete followers
- -List both following
Plans for next two weeks
First evaluation is on June 26.I have to complete functions for retrieving Athlete activities and do the documentations. I am planning to create github webpage for documentation and instructions to use the library .