Skip to main content

Get temporary token

Gets a temporary token based on login and password

Function GetTemporaryToken(Val URL, Val Login, Val Password) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Login--loginStringUsers login
Password--passStringUsers password
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Login = "superadmin";
Password = "12we...";

Result = OPI_ReportPortal.GetTemporaryToken(URL, Login, Password);
oint rportal GetTemporaryToken \
--url "tests.openintegrations.dev" \
--login "superadmin" \
--pass "***"
Result
{
"access_token": "***",
"refresh_token": "***",
"token_type": "***",
"expires_in": 86399
}