first commit

This commit is contained in:
Erik Eckert 2023-08-09 08:19:49 -06:00
commit 543d570024

17
snapper-APITest.ps1 Normal file
View File

@ -0,0 +1,17 @@
$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