This is UNOFFICIAL rust client to acess Withings API. More Withings API document can be found in Withings developer documentation.
Register your app and get your client ID and consumer secret.
Rename dot.env.sample
to dot.env
in your working directory.
CLIENT_ID="client ID"
CONSUMER_SECRET="consumer secret"
CALLBACK_URL=https://localhost
CODE="You can get it by login to the get_authorize_url URL."
ACCSESS_TOKEN="You can get it by get_access_token."
> cargo run --example get_authorize_url --features=env
> cargo run --example get_access_token --features=env
> cargo run --example getmeas --features=env