Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $body = @"
- {
- "username": "admin",
- "password": "natertaterchannel.com"
- }
- "@
- $reponse = Invoke-RestMethod -Method POST -Uri "http://192.168.12.1/TMI/v1/auth/login" -Body $body
- $token = $reponse.auth.token
- $header = @{Authorization="Bearer $token"}
- $response = Invoke-RestMethod -Method POST -Uri "http://192.168.12.1/TMI/v1/gateway/reset?set=reboot" -headers $header
- $response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement