Tạo API Key mới (rawKey chỉ trả về một lần)
curl --request POST \
--url https://seller.hogotopod.com/api/v1/customers/api-keys \
--header 'Content-Type: application/json' \
--header 'X-Tenant: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Tenant': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
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"
payload = { "name": "<string>" }
headers = {
"X-Tenant": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://seller.hogotopod.com/api/v1/customers/api-keys")
.header("X-Tenant", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\"\n}")
.asString();{
"code": "<string>",
"count": 123,
"error": true,
"message": "<string>",
"result": {
"id": "<string>",
"keyPrefix": "<string>",
"name": "<string>",
"rawKey": "<string>"
},
"showMessage": true
}API Key Management
Tạo API Key mới (rawKey chỉ trả về một lần)
POST
/
v1
/
customers
/
api-keys
Tạo API Key mới (rawKey chỉ trả về một lần)
curl --request POST \
--url https://seller.hogotopod.com/api/v1/customers/api-keys \
--header 'Content-Type: application/json' \
--header 'X-Tenant: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Tenant': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
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"
payload = { "name": "<string>" }
headers = {
"X-Tenant": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://seller.hogotopod.com/api/v1/customers/api-keys")
.header("X-Tenant", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\"\n}")
.asString();{
"code": "<string>",
"count": 123,
"error": true,
"message": "<string>",
"result": {
"id": "<string>",
"keyPrefix": "<string>",
"name": "<string>",
"rawKey": "<string>"
},
"showMessage": true
}Authorizations
X-TenantX-API-Key
Body
application/json
body