Skip to content

Latest commit

 

History

History
175 lines (153 loc) · 2.77 KB

api_ext.md

File metadata and controls

175 lines (153 loc) · 2.77 KB

Notice: You need an active API-KEY or you have to wait 300 seconds for the next request

API > Extensions > ID

Request Example

cURL

curl -H 'Authorization: <api_key>' \
-X GET 'https://api.celltek.space/ext/<id>'

PHP

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/ext/<id>');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: <api_key>'
]);
curl_close($ch);
{
	"response": {
		"id": <id>,
		"name": "<name>",
		"link": "https://www.celltek.space/extensions/<id>",
		"changelog": "<url>",
		"version": {
			"full": "<version>",
			"short": <version>
		},
		"required": {
			"tekbase": "<version>",
		"dependices": [
			<list>
			]
		},
		"vendor": {
			"publisher": "<name>",
			"verified": <boolean>,
			"url": "<url>",
			"privacypolice": "<url>",
			"support": "<url>"
		},
		"shop": {
			"category": "<name>",
			"catid": <id>,
			"price": <price>,
			"currency": "<currency>",
			"fees": "<pirce>",
			"term": "<number>"
		},
		"time": {
			"create_at": <timestamp>,
			"update_at": <timestamp>
		}
	}
}

API > Extensions > Cats

Request Example

cURL

curl -H 'Authorization: <api_key>' \
-X GET 'https://api.celltek.space/ext/cats'

PHP

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/ext/cats');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: <api_key>'
]);
curl_close($ch);
{
	"response": {
		"list": [
			{
			"id": <id>,
			"title": "<name>",
			"icon": "<string>",
			"count": <number>
			},
			<more>
		]
	}
}

API > Extensions > List

Request Example

cURL

curl -H 'Authorization: <api_key>' \
-X GET 'https://api.celltek.space/ext/list'

PHP

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.celltek.space/ext/list');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  'Authorization: <api_key>'
]);
curl_close($ch);
{
	"response": {
		"list": [
		{
			"id": <id>,
			"name": "<name>",
			"link": "https://www.celltek.space/extensions/<id>",
			"changelog": "<url>",
			"version": {
				"full": "<version>",
				"short": <version>
			},
			"required": {
				"tekbase": "<version>",
			"dependices": [
				<list>
				]
			},
			"vendor": {
				"publisher": "<name>",
				"verified": <boolean>,
				"url": "<url>",
				"privacypolice": "<url>",
				"support": "<url>"
			},
			"shop": {
				"category": "<name>",
				"catid": <id>,
				"price": <price>,
				"currency": "<currency>",
				"fees": "<pirce>",
				"term": "<number>"
			},
			"time": {
				"create_at": <timestamp>,
				"update_at": <timestamp>
			}
		},
		<more>
		]
	}
}