mschreib28 / withings-ts-example

Example Withings API authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app.

It is meant to serve as a basic example for accessing Withings API data for wearables

Getting Started

Add your client and customer keys to a new .gitignored file:

touch pages/api/constants.hidden.ts

Format should be:

export const CLIENT_ID = "abcd1234567890";
export const CUSTOMER_SECRET = "1234567890abcdefg";

First, run the development server:

yarn && yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Learn More

To learn more about Next.js, take a look at the following resources:

About

Example Withings API authentication


Languages

Language:TypeScript 87.6%Language:CSS 12.4%