I'm trying to create a small powershell script to invoke a rest-method to get an access token. I was able to figure out how to use thunder client to get the data I need in a get request, but don't know how to translate that information into a powershell command.
Info is as follows in thunder client to generate a new token:
Grant Type: Client Credentials
Token URL: {{token_url}}
clientID: {clinet_ID}}
clientSecret: {client_secret}}
scope: {{scope}}
send Auth: As Auth Header
In powershell?
Hi I am creator of Thunder Client, since you already using the extension, you can use Code Snippet feature to generate PowerShell code
Enter Client ID, Client secret in Basic Auth Tab, and enter other values as shown in image below.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With