1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00

49 lines
811 B
Markdown
Raw Normal View History

2024-09-24 11:38:18 +03:00
---
sidebar_position: 2
---
# 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);
```
```sh title="CLI command example"
2024-09-24 14:17:36 +03:00
oint neocities GetToken --login "2athenaeum" --password "Rit..."
2024-09-24 11:38:18 +03:00
```
```json title="Result"
2024-09-25 15:22:14 +03:00
{
"result": "success",
"api_key": "***"
}
2024-09-24 11:38:18 +03:00
```