2024-01-21から1日間の記事一覧
www.vwnet.jp
powershellからformを送信。 # post $uri = "pie.dev/post" #$headers = "" $body = "hello=World" Invoke-RestMethod -Method Post -Uri $uri -Headers $headers -Body $body -ContentType 'application/x-www-form-urlencoded' | ConvertTo-Json # PS C:\.…
yuis-programming.com
powershellからget api を呼び出す。 # get $uri = "https://httpie.io/hello" Invoke-RestMethod -Method Get -Uri $uri | ConvertTo-Json # 実行結果 # PS C:\...\api>.\ApiGet.ps1 # { # "ahoy": [ # "Hello, World! ?? Thank you for trying out HTTPie …