Skip to main content

We would like to communicate with the indicium service using powershell. Does anyone have a sample script for me?

Hi Marc,

Below you can find a small example.

Let me know if it works out for you!
you can find more information about the api usage here: OData API | Thinkwise Documentation

But of course you can also use the Universal UI and open the browser developer tools to get insights.

 

$apiUrl = "https://<url>/indicium/iam/<appl_id>/<tablenane>?`$top=10"

$username = "<username>"
$password = "<password>"

$base64AuthInfo = =Convert]::ToBase64String(gText.Encoding]::ASCII.GetBytes("${username}:${password}"))

$headers = @{
Authorization = "Basic $base64AuthInfo"
Accept = "application/json"
}

$response = Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Get

Write-Host "Number of items:" + $response.value.Count
Write-Host "Response received from API:" + $response.valueu0].titel

 

 


Hi ​@Marc ter Mors,

Did this help, or do you require further assistance?


Reply