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
### sense api powershell examples | |
# with reference: | |
# https://www.jokecamp.com/blog/invoke-restmethod-powershell-examples/ | |
# https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/invoke-restmethod | |
## enter your email address and password (will use securestring later) | |
$emailAddress = "email@contoso.corp" | |
$password = "insertpassword" | |
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
-- Authentication -- | |
URL: https://api.sense.com/apiservice/api/v1/authenticate | |
Method: POST | |
Fields: | |
email (your email) | |
password (your password) | |
response JSON: | |
{ |