# withings-ts

Library for withings API. Currently only some of APIs are supported.
In order to use withings API, you need to register developer application and get client id and secret.

## Supported API

https://developer.withings.com/oauth2/

### OAuth2

- [x] [OAuth 2.0 - Get your authentication code](https://developer.withings.com/oauth2/#operation/oauth2-authorize)
- [x] [OAuth 2.0 - Get your access token](https://developer.withings.com/oauth2/#operation/oauth2-getaccesstoken)
- [x] [OAuth 2.0 - Refresh your access token](https://developer.withings.com/oauth2/#operation/oauth2-refreshaccesstoken)
- [ ] [How to migrate from OAuth 1.0 to OAuth 2.0](https://developer.withings.com/oauth2/#operation/oauth2-migrate)

### Dropshipment

- [ ] [Dropshipment v2 - Createorder](https://developer.withings.com/oauth2/#operation/dropshipmentv2-createorder)
- [ ] [Dropshipment v2 - Createuserorder](https://developer.withings.com/oauth2/#operation/dropshipmentv2-createuserorder)
- [ ] [Dropshipment v2 - Getorderstatus](https://developer.withings.com/oauth2/#operation/dropshipmentv2-getorderstatus)

### User

- [ ] [User v2 - Activate](https://developer.withings.com/oauth2/#operation/userv2-activate)
- [ ] [User v2 - Getdevice](https://developer.withings.com/oauth2/#operation/userv2-getdevice)
- [ ] [User v2 - Getgoals](https://developer.withings.com/oauth2/#operation/userv2-getgoals)
- [ ] [User v2 - Link](https://developer.withings.com/oauth2/#operation/userv2-link)
- [ ] [User v2 - Unlink](https://developer.withings.com/oauth2/#operation/userv2-unlink)

### Measure

- [x] [Measure - Getmeas](https://developer.withings.com/oauth2/#operation/measure-getmeas)
- [ ] [Measure v2 - Getactivity](https://developer.withings.com/oauth2/#operation/measurev2-getactivity)
- [ ] [Measure v2 - Getintradayactivity](https://developer.withings.com/oauth2/#operation/measurev2-getintradayactivity)
- [ ] [Measure v2 - Getworkouts](https://developer.withings.com/oauth2/#operation/measurev2-getworkouts)

### Heart

- [ ] [Heart v2 - Get](https://developer.withings.com/oauth2/#operation/heartv2-get)
- [ ] [Heart v2 - List](https://developer.withings.com/oauth2/#operation/heartv2-list)

### Sleep

- [ ] [Sleep v2 - Get](https://developer.withings.com/oauth2/#operation/sleepv2-get)
- [ ] [Sleep v2 - Getsummary](https://developer.withings.com/oauth2/#operation/sleepv2-getsummary)

### Notify

- [x] [Notify - Get](https://developer.withings.com/oauth2/#operation/notify-get)
- [x] [Notify - List](https://developer.withings.com/oauth2/#operation/notify-list)
- [x] [Notify - Revoke](https://developer.withings.com/oauth2/#operation/notify-revoke)
- [x] [Notify - Subscribe](https://developer.withings.com/oauth2/#operation/notify-subscribe)
- [ ] [Notify - Update](https://developer.withings.com/oauth2/#operation/notify-update)

### Signature

- [x] [Signature v2 - Getnonce](https://developer.withings.com/oauth2/#tag/signature)
