archisnapper-api/snapper-APITest.ps1

18 lines
370 B
PowerShell
Raw Normal View History

2023-08-09 08:19:49 -06:00
$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