We would like to communicate with the indicium service using powershell. Does anyone have a sample script for me?
Solved
Powershell - communicate with Indicium
Best answer by Dick van den Brink
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([Text.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.value[0].titel
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.