1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-09-24 11:38:18 +03:00
parent 603f4c9720
commit 4a9fd2c336
1214 changed files with 8737 additions and 7993 deletions

View File

@@ -0,0 +1,47 @@
---
sidebar_position: 1
---
# Get site data
Gets information about a site by its name or token
`Function GetSiteData(Val Token, Val Website = "") Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Auth token |
| Website | --sitename | String | Site name (login) for information. Current, if not filled in |
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"
Token = "7419cd51de4037f7...";
Website = "2athenaeum";
Result = OPI_Neocities.GetSiteData(Token);
Result = OPI_Neocities.GetSiteData(Token, Website);
```
```sh title="CLI command example"
oint neocities GetSiteData --token "7419cd51de4037f7..." --sitename %sitename%
```
```json title="Result"
```

View File

@@ -0,0 +1,45 @@
---
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"
oint neocities GetToken --login "2athenaeum" --password "Rit..."
```
```json title="Result"
```

View File

@@ -0,0 +1,4 @@
{
"label": "Data retrieving",
"position": "2"
}