First 2 weeks of GSoC

Related imageTwo 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.

 

Basic functionalities

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.

API AUTHENTICATION.

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.

ATHLETE FUNCTION

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.

  1. -Retrieve current Athlete
  2. -Retrieve another athlete
  3. -Update current Athlete
  4. -Get athlete zones
  5. -Get athlete K/QOM
  6. -Get athlete stats
  7. -List athlete friends
  8. -List athlete followers
  9. -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 .

 

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s