Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = {
- username : test,
- password : test
- }
- $url = 'https://myapi.com/api/authorize/oauth/token'
- Invoke-RestMethod -Method Post -Uri $url -ContentType "application/x-www-form-urlencoded" -Headers $authHeader -Body $data
Add Comment
Please, Sign In to add comment