GET /api/v3/drive-templates/fonts/public¶
Summary¶
GET /drive-templates/fonts/public
Description¶
Returns a list of available public fonts that can be used when building a template
Tags: templates
Parameters¶
Header Parameters¶
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization |
string |
✓ Yes | Bearer {AuthToken} |
|
Content-Type |
string |
✓ Yes | application/json |
|
Accept |
string |
✓ Yes | application/json |
|
AppIdV3 |
string |
✓ Yes | LCUID-LAP-********-****-****-****-************ |
Responses¶
Response: 200¶
Description: Sample Response
Content Type: application/json¶
Schema¶
Type: object
Properties:
success(boolean): Indicates if the request was successfulfonts(object) Type:object
Properties:
current_page(integer)-
data(array)- Array items:
objectType:object
Properties:
name(string)status(integer)public(boolean)font_type(string)unique_hash(string)-
options(object) Type:objectProperties:
_init(array)public_url(string)
-
lcuid(string)
- Array items:
-
from(integer) last_page(integer)-
links(array)- Array items:
objectType:object
Properties:
url(string)label(string)active(boolean)
- Array items:
-
per_page(integer) to(integer)total(integer)
Example Response¶
{
"success": true,
"fonts": {
"current_page": 1,
"data": [
{
"name": "91pTuIKmsY Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/2032/fnt_69d3d8a41a315_1b1518fa597752dcfefe.ttf"
},
"lcuid": "LCUID-LFT-951e7264-e7a8-4427-a1b1-7de95d62cf40"
},
{
"name": "AXgSTkWS0p Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/2007/fnt_69d3d882bcce4_943aea1a227b2d3c38aa.ttf"
},
"lcuid": "LCUID-LFT-99580c5e-7d08-493c-af20-d9516f1e3a84"
},
{
"name": "Dft2NQY4YU Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/1931/fnt_69d3d6d0a0681_c22df08e213e545fd600.ttf"
},
"lcuid": "LCUID-LFT-6427f389-3fda-42f9-a739-6ed72223a366"
}
],
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8080/api/v3/drive-templates/fonts/public?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"per_page": 100,
"to": 3,
"total": 3
}
}
Example Implementations¶
Bash (cURL)¶
curl --request GET \
--get "https://api.lucit.app/api/v3/drive-templates/fonts/public" \
--header "Authorization: Bearer {AuthToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "AppIdV3: LCUID-LAP-********-****-****-****-************"
JavaScript (Fetch API)¶
const url = new URL(
"https://api.lucit.app/api/v3/drive-templates/fonts/public"
);
const headers = {
"Authorization": "Bearer {AuthToken}",
"Content-Type": "application/json",
"Accept": "application/json",
"AppIdV3": "LCUID-LAP-********-****-****-****-************",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
PHP (Guzzle)¶
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.lucit.app/api/v3/drive-templates/fonts/public',
[
'headers' => [
'Authorization' => 'Bearer {AuthToken}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'AppIdV3' => 'LCUID-LAP-********-****-****-****-************',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Python (Requests)¶
import requests
import json
url = 'https://api.lucit.app/api/v3/drive-templates/fonts/public'
headers = {
'Authorization': 'Bearer {AuthToken}',
'Content-Type': 'application/json',
'Accept': 'application/json',
'AppIdV3': 'LCUID-LAP-********-****-****-****-************'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example Responses¶
200 Response¶
{
"success": true,
"fonts": {
"current_page": 1,
"data": [
{
"name": "91pTuIKmsY Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/2032/fnt_69d3d8a41a315_1b1518fa597752dcfefe.ttf"
},
"lcuid": "LCUID-LFT-951e7264-e7a8-4427-a1b1-7de95d62cf40"
},
{
"name": "AXgSTkWS0p Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/2007/fnt_69d3d882bcce4_943aea1a227b2d3c38aa.ttf"
},
"lcuid": "LCUID-LFT-99580c5e-7d08-493c-af20-d9516f1e3a84"
},
{
"name": "Dft2NQY4YU Font",
"status": 1,
"public": true,
"font_type": "ttf",
"unique_hash": "7f05d48f4a28cc6bd2f81faa3c7551f1",
"options": {
"_init": [],
"public_url": "http://localhost:8080/storage/1931/fnt_69d3d6d0a0681_c22df08e213e545fd600.ttf"
},
"lcuid": "LCUID-LFT-6427f389-3fda-42f9-a739-6ed72223a366"
}
],
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8080/api/v3/drive-templates/fonts/public?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"per_page": 100,
"to": 3,
"total": 3
}
}