$response = Invoke-RestMethod -Uri 'https://api.cashless.go.jp/location/' -Method Get -Body @{ 'lat'=35.681236; 'lng'=139.76712499999996; 'limit'=30; 'd'=15000; 'q'=''; 'b'=''; 'c'=''; 'r'=''; 'p'='';}
$response.items | Get-Member -MemberType Properties | Select-Object -ExpandProperty Name | ForEach-Object {$response.items.($_)} | ForEach-Object { (Invoke-RestMethod ('https://api.cashless.go.jp/location/' + $_))} | Export-Csv .\output.csv -NoTypeInformation -Append -Encoding UTF8
$response.items |
Get-Member -MemberType Properties |
Select-Object -ExpandProperty Name |
ForEach-Object {$response.items.($_)} |
ForEach-Object { (Invoke-RestMethod ('https://api.cashless.go.jp/location/' + $_))} |
Export-Csv .\output.csv -NoTypeInformation -Append -Encoding UTF8
docs.microsoft.com
mseeeen.msen.jp
powershell.web.fc2.com