Skip to content

Instantly share code, notes, and snippets.

@marufeuille
Created October 8, 2016 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marufeuille/a9b9b263d6477a907fabb3c6c5c0ed74 to your computer and use it in GitHub Desktop.
Save marufeuille/a9b9b263d6477a907fabb3c6c5c0ed74 to your computer and use it in GitHub Desktop.
$header = @{
"X-IIJmio-Developer" = "XXXXXX";
"X-IIJmio-Authorization" = "XXXXX";
}
$result = Invoke-WebRequest -Headers $header https://api..jp/mobile/d/v1/log/packet/
$content = $result | ConvertFrom-Json
Write-Host $result
Write-Host $content
foreach ($line in $content.packetLogInfo) {iijmio
Write-Host $line.hddServiceCode
Write-Host $line.hdoInfo[0].packetLog[0].withCoupon
Write-Host $line.hdoInfo[0].packetLog[0].withoutCoupon
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment