You've already forked OpenIntegrations
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:
47
docs/en/md/Neocities/Data-retrieving/Get-site-data.md
Normal file
47
docs/en/md/Neocities/Data-retrieving/Get-site-data.md
Normal 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"
|
||||
|
||||
```
|
||||
45
docs/en/md/Neocities/Data-retrieving/Get-token.md
Normal file
45
docs/en/md/Neocities/Data-retrieving/Get-token.md
Normal 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"
|
||||
|
||||
```
|
||||
4
docs/en/md/Neocities/Data-retrieving/_category_.json
Normal file
4
docs/en/md/Neocities/Data-retrieving/_category_.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Data retrieving",
|
||||
"position": "2"
|
||||
}
|
||||
Reference in New Issue
Block a user