Skip to content

Instantly share code, notes, and snippets.

@EinPinsel
Created December 2, 2016 21:50
Show Gist options
  • Save EinPinsel/5db360d0a65704917e5eabda9b2213df to your computer and use it in GitHub Desktop.
Save EinPinsel/5db360d0a65704917e5eabda9b2213df to your computer and use it in GitHub Desktop.
$uri = 'https://api.netatmo.com/oauth2/token'
$body = @{
"client_id" = "ClientID";
"client_secret" = "ClientSecret";
"grant_type" = "password";
"username" = "Mail";
"password" = "Password"
}
$uri = 'https://api.netatmo.com/oauth2/token'
$token = Invoke-RestMethod -Uri $uri -Method Post -Body $body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment