Created
December 2, 2016 21:50
-
-
Save EinPinsel/5db360d0a65704917e5eabda9b2213df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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