Created
April 3, 2019 00:15
-
-
Save dtkloud/b60b2fccdb4b8f404507112d3202bbd4 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
$client_key = "<your client key>" | |
$client_secret = "<your secret>" | |
$body = "grant_type=client_credentials&client_id=$client_key&client_secret=$client_secret&scope=NSMS" | |
$Authorization = Invoke-RestMethod "https://tapi.telstra.com/v2/oauth/token" -Method POST -ContentType "application/x-www-form-urlencoded" -Body $body -ErrorAction STOP | |
$access_token = $Authorization.access_token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment