Get Table Collection
GetTableList Api
Endpoint
Request URL: https://usapi.hottask.com/autodev/CustomTableValue/GetTableList/{{randomCode}}
Method: GET
- randomCode: The project randomCode. Example:
7qaucizgxdrb
- Example:
/autodev/CustomTableValue/GetTableList/7qaucizgxdrb
.
Request Headers
The API request must include the following headers:
customauth: project auth token
- string, required - The secret key for authenticating the API requestContent-Type: application/json
- string, required - The content type of the request payload (must be application/json)
Example Request
JavaScript (Fetch API)
const res = await fetch('https://usapi.hottask.com/autodev/CustomTableValue/GetTableList/{{randomCode}}', {
method: 'GET',
headers: {
"customauth": "project auth token",
"Content-Type": "application/json"
}
});
const data = await res.json();
console.log(data);
Python (Requests Library)
import requests
import json
url = 'https://usapi.hottask.com/autodev/CustomTableValue/GetTableList/{{randomCode}}'
headers = {
"customauth": "project auth token",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers, json=data)
data = response.json()
print(data)
cURL
curl 'https://usapi.hottask.com/autodev/CustomTableValue/GetTableList/{{randomCode}}' \
-X GET \
-H 'customauth: project auth token' \
-H 'Content-Type: application/json' \
HTTP Request
GET /autodev/CustomTableValue/GetTableList/{{randomCode}} HTTP/1.1
Host: usapi.hottask.com
customauth: project auth token
Content-Type: application/json
Response
The API response will be a JSON object with the following structure:
{
// array - The project tables
"Data": [
{
"ID": 123,
"TableName": "easysite_auth_users",
"TableDisplayName": "easysite auth users",
"FieldDefinitions": [
{
"FieldName": "id"
}
]
}
],
// string - API version
"Version": "1.0.0",
// boolean - Operation success status
"Success": true,
// integer - HTTP status code
"Code": 200,
// string - Error message if any
"Message": ""
}