Skip to content

jordan-chalupka/ouraring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oura Ring OpenAPIv3 Schema Definition + Go Client

This repo contains an OpenAPIv3 schema definition for OuraRing

OuraRing API documentation https://cloud.ouraring.com/docs/

Generating the client

Client generation is done using https://github.com/deepmap/oapi-codegen

To regenerate the client, run the command

oapi-codegen --package ouraring ouraring_openapi.yaml > ouraring.gen.go

Extending the schema definition

At this time, the schema definition is not complete.

If there is data which you would like to fetch but it is not available, consider adding it to the schema definition and regenerating the client.

Example usage

Get your personal access token from AuraRing https://cloud.ouraring.com/personal-access-tokens

export OURA_ACCESS_TOKEN="YOUR_PERSONAL_ACCESS_TOKEN"
go run example/main.go

Should fetch your activity score for today:

Activity Score: 81

About

Go client + OpenAPI v3 spec for Oura-Ring

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages