Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
15 lines (11 sloc) 0.531 kB
function Get-StackOverflowUser ($id) {
$url = "http://api.stackoverflow.com/1.1/users/$id"
$data = (New-Object Net.WebClient).DownloadData($url)
$memoryStream = New-Object System.IO.MemoryStream(,$data)
$decompress = New-Object `
System.IO.Compression.GZipStream($memoryStream,"Decompress")
$reader = New-Object System.IO.StreamReader($decompress)
$ret = $reader.ReadToEnd()
($ret | ConvertFrom-Json).Users
}
Get-StackOverflowUser –id 110865
Jump to Line
Something went wrong with that request. Please try again.