$apiKey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
Invoke-WebRequest -Uri https://eu1.psb.fsapi.com/mp/v1/authentication/login -Method Post -Headers @{ 'x-api-key' = $apiKey ; "username" = "XXXXXXXXXX" ; "password"="XXXXXXXXXXXX" }
ITHe Apikey work fine but i get this erro no matter what
{"errors":[{"code":3030,"message":"login.error.badCredentials","lockDuration":1800000,"maxFailedLogins":5}]}
i ty this way to
$apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
$Credential = Get-Credential
Invoke-WebRequest -Uri https://eu1.psb.fsapi.com/mp/v1/authentication/login -Method Post -Headers @{ 'x-api-key' = $apiKey } -Credential $Credential