first commit
This commit is contained in:
commit
543d570024
17
snapper-APITest.ps1
Normal file
17
snapper-APITest.ps1
Normal 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user