mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-03 13:22:19 +02:00
47 lines
772 B
Plaintext
47 lines
772 B
Plaintext
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get token
|
|
Receives authorization token by login and password
|
|
|
|
|
|
|
|
`Function GetToken(Val Login, Val Password) Export`
|
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|-|-|-|-|
|
|
| Login | --login | String | Users login |
|
|
| Password | --password | String | Users password |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Neocities
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Neocities API docs: [neocities.org/api](https://neocities.org/api)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```bsl title="Code example"
|
|
Login = "2athenaeum";
|
|
Password = "Rit...";
|
|
|
|
Result = OPI_Neocities.GetToken(Login, Password);
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"result": "success",
|
|
"api_key": "***"
|
|
}
|
|
```
|