Skip to main content

Get token

Receives authorization token by login and password

Function GetToken(Val Login, Val Password) Export

ParameterCLI optionTypeRequiredDescription
Login--loginStringUsers login
Password--passwordStringUsers password

Returns: Map Of KeyAndValue - serialized JSON response from Neocities


tip

Neocities API docs: neocities.org/api


1C:Enterprise/OneScript code example
    Login    = "2athenaeum";
Password = "Rit...";

Result = OPI_Neocities.GetToken(Login, Password);
    oint neocities GetToken \
--login "2athenaeum" \
--password "***"
Result
{
"result": "success",
"api_key": "***"
}