Get temporary token
Gets a temporary token based on login and password
- Parameters
- Advanced call ?
Function GetTemporaryToken(Val URL, Val Login, Val Password) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Login | --login | String | ✔ | Users login |
| Password | --pass | String | ✔ | Users password |
Returns
Map Of KeyAndValue - serialized JSON response from ReportPortal
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Login = "superadmin";
Password = "12we...";
Result = OPI_ReportPortal.GetTemporaryToken(URL, Login, Password);
- Bash
- CMD/Bat
oint rportal GetTemporaryToken \
--url "tests.openintegrations.dev" \
--login "superadmin" \
--pass "***"
oint rportal GetTemporaryToken ^
--url "tests.openintegrations.dev" ^
--login "superadmin" ^
--pass "***"
Result
{
"access_token": "***",
"refresh_token": "***",
"token_type": "***",
"expires_in": 86399
}