Coder Social home page Coder Social logo

go-whoop's Introduction

go-whoop

Download sleep, workout, cycle and recovery data using the Whoop API. You need a Whoop developer account to authenticate. This takes less than 5 minutes to set up and is free for any user.

Getting started

Follow these steps to download your Whoop data:

  • Make sure you have go installed locally (on Mac: brew install go).
  • Create a new app in the Whoop Developer portal. Ensure that it has access to all OAuth2 read: scopes. Your app can be in test mode without being published or verified.
  • Create a .env file with your ClientID and ClientSecret. You can view and example in example.env.
  • Next, run go build to compile the program.
  • Now, run ./go-whoop to get started with the OAuth2 authentication.
  • You will be prompted to sign in using a URL. Click on the URL and login to Whoop.
  • Once you completed authentication, copy/paste the full URL into your terminal and hit enter. This way, the response OAuth2 code is returned.
  • The program should now download your cycle, recovery, sleep and workout data to a log file.
  • When you run the program again, it will check if your authentication token is still valid and refresh it if needed.

Example commands for CLI:

Download all Whoop logs (cycle, recovery, sleep, workout)

./go-whoop

go-whoop's People

Contributors

marekq avatar

Watchers

 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.