Created
November 27, 2022 12:40
-
-
Save Philmist/686f43f83bd6478d078b8985df9849dd to your computer and use it in GitHub Desktop.
どう見てもおかしいConvertFrom-Jsonと格闘した結果
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
$result = @{"method"="getChannels";"id"=19021;"jsonrpc"="2.0";"params"=@{}} | ConvertTo-Json | Invoke-WebRequest -Method Post -Headers @{"Content-type"="application/json";"X-Requested-With"="XMLHttpRequest"} http://192.168.0.100:7144/api/1 | %{ [Text.Encoding]::UTF8.GetString([Text.Encoding]::UTF8.GetBytes($_.Content)) } | ConvertFrom-Json | |
$result.result | %{ $_.info } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment