Giter VIP home page Giter VIP logo

h10_accesslink_python's Introduction

Polar Open AccessLink example application

This is an example application that uses the Polar Open AccessLink API. With the Polar Open AccessLink you can access the training and daily activity data recorded with Polar devices.

Prerequisites

Getting Started

1. Create new API client

Navigate to https://admin.polaraccesslink.com. Log in with your Polar Flow account and create a new client.

Use http://localhost:5000/oauth2_callback as the authorization callback domain for this example.

2. Configure client credentials

Fill in your client id and secret in config.yml:

client_id: 57a715f8-b7e8-11e7-abc4-cec278b6b50a
client_secret: 62c54f4a-b7e8-11e7-abc4-cec278b6b50a

3. Install python dependencies

pip install -r requirements.txt

4. Link user

User account needs to be linked to client application before client can get any user data. User is asked for authorization in Polar Flow, and user is redirected back to application callback url with authorization code once user has accepted the request.

To start example callback service, run:

python authorization.py

and navigate to 'https://flow.polar.com/oauth2/authorization?response_type=code&client_id=CLIENT_ID' to link user account.

5. Run example application

python accesslink_example.py

Once user has linked their user account to client application and synchronizes data from Polar device to Polar Flow, application is able to load data. Selecting 'Check available data' option from example application menu loads the synchronized data from Polar Flow and prints it on the screen.

h10_accesslink_python's People

Contributors

urholaukkarinen avatar vmhirvinen avatar velluhirvinen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.