Guest User

Untitled

a guest
Nov 30th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $data = {
  2. username : test,
  3. password : test
  4. }
  5. $url = 'https://myapi.com/api/authorize/oauth/token'
  6.  
  7. Invoke-RestMethod -Method Post -Uri $url -ContentType "application/x-www-form-urlencoded" -Headers $authHeader -Body $data
Add Comment
Please, Sign In to add comment