Get token
Receives authorization token by login and password
- Parameters
- Advanced call ?
Function GetToken(Val Login, Val Password) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Login | --login | String | ✔ | Users login |
| Password | --password | String | ✔ | Users password |
Returns
Map Of KeyAndValue - serialized JSON response from Neocities
| 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) |
tip
Neocities API docs: neocities.org/api
1C:Enterprise/OneScript code example
Login = "2athenaeum";
Password = "Rit...";
Result = OPI_Neocities.GetToken(Login, Password);
- Bash
- CMD/Bat
oint neocities GetToken \
--login "2athenaeum" \
--password "***"
oint neocities GetToken ^
--login "2athenaeum" ^
--password "***"
Result
{
"result": "success",
"api_key": "***"
}