Danh sách API Key của tài khoản
curl --request GET \
--url https://seller.hogotopod.com/api/v1/customers/api-keys \
--header 'X-Tenant: <api-key>'const options = {method: 'GET', headers: {'X-Tenant': '<api-key>'}};
fetch('https://seller.hogotopod.com/api/v1/customers/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://seller.hogotopod.com/api/v1/customers/api-keys"
headers = {"X-Tenant": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://seller.hogotopod.com/api/v1/customers/api-keys")
.header("X-Tenant", "<api-key>")
.asString();{
"code": "<string>",
"count": 123,
"error": true,
"message": "<string>",
"result": [
{
"active": true,
"createdDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"keyPrefix": "<string>",
"lastUsedAt": "2023-11-07T05:31:56Z",
"name": "<string>"
}
],
"showMessage": true
}API Key Management
Danh sách API Key của tài khoản
GET
/
v1
/
customers
/
api-keys
Danh sách API Key của tài khoản
curl --request GET \
--url https://seller.hogotopod.com/api/v1/customers/api-keys \
--header 'X-Tenant: <api-key>'const options = {method: 'GET', headers: {'X-Tenant': '<api-key>'}};
fetch('https://seller.hogotopod.com/api/v1/customers/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://seller.hogotopod.com/api/v1/customers/api-keys"
headers = {"X-Tenant": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://seller.hogotopod.com/api/v1/customers/api-keys")
.header("X-Tenant", "<api-key>")
.asString();{
"code": "<string>",
"count": 123,
"error": true,
"message": "<string>",
"result": [
{
"active": true,
"createdDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"keyPrefix": "<string>",
"lastUsedAt": "2023-11-07T05:31:56Z",
"name": "<string>"
}
],
"showMessage": true
}Authorizations
X-TenantX-API-Key