Skip to content

Commit

Permalink
API Update
Browse files Browse the repository at this point in the history
v5
  • Loading branch information
ce-ju committed Apr 13, 2023
1 parent 15764d1 commit 5758af0
Show file tree
Hide file tree
Showing 16 changed files with 966 additions and 339 deletions.
6 changes: 2 additions & 4 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
- [Extensions](ts_extensions.md)
- [Heavy Loading](ts_resolv.md)

- PHP SDK
- [Examples](examples.md)

- API
- [API System](api_system.md)
- [System](api_system.md)
- [Uptime](api_uptime.md)
- [Account](api_account.md)
- [Allowlist](api_allowlist.md)
- [Denylist](api_denylist.md)
Expand Down
54 changes: 17 additions & 37 deletions api_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

```cURL
curl -H 'Authorization: <license_key>' \
-X GET 'https://api.celltek.space/v4/account'
-X GET 'https://api.celltek.space/account'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/v4/account');
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/account');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <license_key>'
]);
Expand All @@ -26,44 +26,24 @@ curl_close($ch);

```json
{
"response": {
"email": "<email>",
"url": "<domain>",
"url_ext": <domain_ext|null>,
"type": "<Free|Privat|Business>",
"status": 200,
"image": {
"access": <true|false>,
"count": <count>
},
"version": {
"widget": {
"tekbase8": "<version>"
},
"module": {
"tekbase8": "<version>"
},
"database": {
"tekbase8": "<version>"
}
"response":{
"status": <httpstatus>,
"tekbase":{
"url": "<url>",
"dir": <dir>
},
"shop": {
<[extensions]>
"imageserver":{
"type": "<type>",
"access": <boolean>,
"count": <count>,
"startdate": <timestamp>,
"enddate": <timestmap>
},
"dunning": {
"status": <false|true>,
"createtime": <timestamp>,
"az": "<az>"
"extensions":{
<list>
},
"time": {
"startdate_at": <timestamp>,
"enddate_at": <timestamp>,
"timezone": "UTC/GMT +1"
},
"_links": {
"uri": "https://api.celltek.space/v4/account",
"time": <timestamp>
"dunning":{
<list>
}
}
}
```
53 changes: 0 additions & 53 deletions api_addonsgame.md

This file was deleted.

76 changes: 76 additions & 0 deletions api_allowlist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
## API > Allowlist > IP

### Request Example

<!-- tabs:start -->
#### **cURL**

```cURL
curl -H 'Authorization: <ipv4>' \
-X GET 'https://api.celltek.space/allowlist/ip'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/allowlist/ip');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <ipv4>'
]);
curl_close($ch);
```
<!-- tabs:end -->

```json
{
"response":{
"status": <boolean>,
"ipv4": "<ipv4>",
"time": <timestamp>
}
}
```

## API > Allowlist > Domain

### Request Example

<!-- tabs:start -->
#### **cURL**

```cURL
curl -H 'Authorization: <domain>' \
-X GET 'https://api.celltek.space/allowlist/domain'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/allowlist/domain');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <domain>'
]);
curl_close($ch);
```
<!-- tabs:end -->

```json
{
"response":{
"status": <httpstatus>,
"domain": "<domain>",
"tekbase":{
"url": "<domain>",
"dir": "<dir>"
},
"money":{
"money": <number>
},
"extensions":{
<list>
}
}
}
```
114 changes: 114 additions & 0 deletions api_denylist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

> Notice: You need an active license key or you have to wait 300 seconds for the next request
## API > Denylist > Domains

### Request Example

<!-- tabs:start -->
#### **cURL**

```cURL
curl -H 'Authorization: <license_key>' \
-X GET 'https://api.celltek.space/denylist/domains'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/denylist/domain');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <license_key>'
]);
curl_close($ch);
```
<!-- tabs:end -->

```json
{
"response":{
"list": [
{
"id": <id>,
"name": "<url>"
},
<more>
]
}
}
```

## API > Denylist > Phones

### Request Example

<!-- tabs:start -->
#### **cURL**

```cURL
curl -H 'Authorization: <license_key>' \
-X GET 'https://api.celltek.space/denylist/phones'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/denylist/phones');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <license_key>'
]);
curl_close($ch);
```
<!-- tabs:end -->

```json
{
"response":{
"list": [
{
"name": "<number>"
},
<more>
]
}
}
```

## API > Denylist > Words

### Request Example

<!-- tabs:start -->
#### **cURL**

```cURL
curl -H 'Authorization: <license_key>' \
-X GET 'https://api.celltek.space/denylist/words'
```

#### **PHP**

```php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/denylist/words');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: <license_key>'
]);
curl_close($ch);
```
<!-- tabs:end -->

```json
{
"response":{
"list": [
{
"name": "<string>"
},
<more>
]
}
}
```
Loading

0 comments on commit 5758af0

Please sign in to comment.