1.0.2 • Published 2 years ago
oura-js v1.0.2
Oura.js
Oura Cloud API client with types.
Installation
$ npm install oura-js
Usage
import { Oura } from 'oura-js'
// Access Token: https://cloud.ouraring.com/docs/authentication
const token = 'MY_ACCESS_TOKEN'
const oura = new Oura(token)
console.log(await oura.sleep({ start: '2021-12-10' }))
API
API | Data |
---|---|
userInfo | Personal Info |
sleep | Sleep |
activity | Actibity |
readiness | Readiness |
bedtime | Ideal Bedtime |
Development Status
Status | HTTP Method | Endpoint | API |
---|---|---|---|
⚡ | GET | /v1/userinfo | userInfo |
⚡ | GET | /v1/sleep | sleep |
⚡ | GET | /v1/activity | activity |
⚡ | GET | /v1/readiness | readiness |
⚡ | GET | /v1/bedtime | bedtime |