Mapmyfitness API integration and gethealth api

Mapmyfitness API integration and gethealth api

Mapmyfitness is a application which can Track Workouts, Running, Cycling, Walking, and Calorie Counter.If offer publicly available interface allowing developers to access mapmyfitnessto the rich  dataset from MapMyFitness application. the API is available underarmour. Hence we will refer API as UnderArmour API. In this blog post, I will touch down what issues you can face while integrating UnderArmour API.  And in latter part show how by using Unified gethealth.io REST API how can we get data from Underarmour API and  across hundred’s of  other devices and applications. In following steps i will touch down the steps you need while integrating Underarmour API directly.

Step 1: Register application to API consumer key and secret which allow apps to connect to the UnderArmour API

After registering you need to hit Underarmour API console to configure app settings: redirecting url domain restriction, setting the subscription endpoint, resources you want to subscribe.

Step 2: Read Documentation of API

UnderArmour API uses OAuth 2.0 with App Authorization for user authorization. In order to access the resource you need to use APP ID and APP secret to get auth code. By using this auth code we can access or prompt user to authorization of his data. And then by getting the auth token we can get the data of user by hittingUnderArmour API endpoints. The whole OAuth flow, used inUnderArmour API is show below.

Step 3: Find an OAuth  library for your programming language and framework to create an authorization flow.

Depending upon the programming language you use , you can find the appropriate library which supports Oauth  authentication mechanism and flow

Step 4 Generating request to get data from UnderArmour API

The UnderArmour API is the primary way to get data of the MapMyfitness app. It’s a low-level HTTP-based REST API that you can use to query data, a variety of other tasks that an app may need to do. Most API calls must be signed with an access_token(auth_token) fetched from the step 2.

These  steps described above can take considerable developer time and also will let developer to focus on the business logic of application. Gethealth.io can help you in this regard. Get health provides all this with few REST API calls. Using gethealth.io you need to follow below steps

Step 1: Signup for gethealth.io

signupdashboard_demo

Step 2: Integrate our Rest API.

For user authentication we have provided the REST API call which you just need to  integrate in your Application and it handles all authentication mechanism itself (e.g Oauth 2.o for Movesapp).

Step 3: Make API requests with user authorization token to fetch data across multiple user or single user.

We also provide Rest API calls which enable you to fetch data across multiple user using account call and for particular user using user call.Checkout out API documentation which let’s you get starting using the API in no time. E.g. the below api call fetches activities of a particular user:

https://platform.gethealth.io/v1/health/user/sleeps/?access_token=FA44D6C6C7831CCFB208A5324F15BA47CEF04479&start_date=2013-04-23T06:46:34&end_date=2016-04-23T06:46:34&offset=0&limit=100&source=mapmyfitness

Conclusion:

In this blog post I described the steps which you need to deal with while accessing data using UnderArmour API and also described how simply we can use gethealth.io to get the same data while reducing all the technical effort by the developer. Using gethealth the developer can focus on how he can focus on the data fetched from source. Also using gethealth developer can add data from hundreds of other sources like misfit, Runkeeper, Googlefit , Fibit and many more wearables and healthcare application using same implementation flow and need not to follow each sources development requirement. In coming blogs I will post interesting integration challenges about Googlefit, Microsoft Band and other application. Follow gethealth.io on twitter.

No Comments

Sorry, the comment form is closed at this time.