ken_nogi/PowerShell/test.ps1
Kenichiro NOGI 4f9593b26f 2025-12-13
2025-12-13 18:12:03 +09:00

14 lines
535 B
PowerShell

# 送信するJSONデータ
$apiKey = "6504c8a807677a3a576e10327f3c19876c55736ee45d4a845796b9e7f5e087bfd4bd0d8184863da8cf1733ca635111432ab334aea59102b06a96ee6d2c05190d"
$jsonData = @{
ApiVersion = "1.1"
ApiKey = $apiKey
} | ConvertTo-Json
$uri = "https://nextoffice.next-hd.co.jp/pleasanter/api/items/376872/get"
$outputFile = "result.txt"
$response = Invoke-WebRequest -Uri $uri -Method POST -Body $jsonData -ContentType "application/json" -UseBasicParsing
$response.Content | Out-File -FilePath $outputFile -Encoding UTF8