18 lines
370 B
PowerShell
18 lines
370 B
PowerShell
|
$APIToken = 'szjxBgQNQSW1xq2ByjKB'
|
||
|
$APIUrl = 'https://app3.archisnapper.com/api/public/v1/'
|
||
|
|
||
|
$url_APIToken = '?auth_token='+$APIToken
|
||
|
|
||
|
$header = @{
|
||
|
auth_token = $APIToken
|
||
|
} | ConvertTo-Json
|
||
|
|
||
|
# get list of projects
|
||
|
$URI = $APIUrl+'sites.json'+$url_APIToken
|
||
|
$response = Invoke-WebRequest -Uri $URI -Method Get
|
||
|
|
||
|
|
||
|
$ProjectList = $response.Content | convertfrom-json
|
||
|
|
||
|
|