È necessaria una chiave API affinché le richieste vengano elaborate dal sistema. Una volta che un utente si registra, viene generata automaticamente una chiave API per questo utente. La chiave API deve essere inviata con ogni richiesta (vedi esempio completo di seguito). Se la chiave API non viene inviata o è scaduta, si verificherà un errore. Assicurati di mantenere segreta la tua chiave API per prevenire abusi.
Per autenticarti con il sistema API, devi inviare la tua chiave API come token di autorizzazione con ogni richiesta. Puoi vedere il codice di esempio di seguito.
curl --location --request POST 'https://urlkai.com/api/account' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/account',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ຮ່າງກາຍ: ''
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/account"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
La nostra API ha un limitatore di velocità per salvaguardare da picchi di richieste per massimizzarne la stabilità. Il nostro limitatore di velocità è attualmente limitato a 30 richieste al 1 minuto. ຂໍໃຫ້ສັງເກດວ່າອັດຕາອາດປ່ຽນແປງຕາມແຜນການທີ່ສະຫມັກ.
Insieme alla risposta verranno inviate diverse intestazioni che possono essere esaminate per determinare varie informazioni sulla richiesta.
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 29
X-RateLimit-Reset: TIMESTAMP
Tutte le risposte API vengono restituite in formato JSON per impostazione predefinita. Per convertirli in dati utilizzabili, sarà necessario utilizzare la funzione appropriata in base alla lingua. In PHP, la funzione json_decode() può essere utilizzata per convertire i dati in un oggetto (predefinito) o in un array (impostare il secondo parametro su true). È molto importante controllare la chiave di errore in quanto fornisce informazioni sull'eventuale presenza di un errore. Puoi anche controllare il codice dell'intestazione.
{
"error": 1,
"message": "An error occurred"
}
https://urlkai.com/api/account
Per ottenere informazioni sull'account, puoi inviare una richiesta a questo endpoint che restituirà i dati sull'account.
curl --location --request GET 'https://urlkai.com/api/account' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/account',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/account"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"ຂໍ້ມູນ": {
"id": 1,
"ອີເມວ": " [email protected] ",
"username": "sampleuser",
"avatar": "https:\/\/domain.com\/content\/avatar.png",
"status": "pro",
"expires": "2022-11-15 15:00:00",
"ຈົດທະບຽນ": "2020-11-10 18:01:43"
}
}
https://urlkai.com/api/account/update
Per aggiornare le informazioni sull'account, puoi inviare una richiesta a questo endpoint che aggiornerà i dati sull'account.
curl --location --request PUT 'https://urlkai.com/api/account/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"ອີເມວ": " [email protected] ",
"password": "ລະຫັດໃຫມ່"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"ອີເມວ": " [email protected] ",
"password": "ລະຫັດໃຫມ່"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/account/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"ອີເມວ": " [email protected] ",
"password": "ລະຫັດໃຫມ່"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/account/update"
payload = {
"ອີເມວ": " [email protected] ",
"password": "ລະຫັດໃຫມ່"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/account/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"ອີເມວ": " [email protected] ",
"password": "ລະຫັດໃຫມ່"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ບັນຊີໄດ້ຮັບການປັບປຸງຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/campaigns?limit=2&page=1
ເພື່ອຮັບໂຄງການໂຄສະນາຜ່ານ API ທ່ານສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/campaigns?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaigns?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/campaigns?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/campaigns?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/campaigns?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"ໂຄງການ": [
{
"id": 1,
"name": "ຕົວຢ່າງໂຄງການ",
"ສາທາລະນະ": ຕົວະ,
"rotator": ຜິດ,
"list": "https:\/\/domain.com\/u\/admin\/list-1"
},
{
"id": 2,
"domain": "Facebook Campaign",
"public": ຈິງ,
"rotator": "https:\/\/domain.com\/r\/test",
"list": "https:\/\/domain.com\/u\/admin\/test-2"
}
]
}
}
https://urlkai.com/api/campaign/add
ໂຄງການໂຄສະນາສາມາດເພີ່ມຂຶ້ນໄດ້ໂດຍໃຊ້ຈຸດສຸດທ້າຍນີ້.
Parametro | Descrizione |
---|---|
ຊື່ | (ເລືອກ) ຊື່ໂຄງການ |
slug | (ເລືອກ) Rotator Slug |
ສາທາລະນະ | (ເລືອກ) ການເຂົ້າເຖິງ |
curl --location --request POST 'https://urlkai.com/api/campaign/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "ໂຄງການໃຫມ່",
"slug": "ໂຄງການໃຫມ່",
"ສາທາລະນະ": ແທ້
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "ໂຄງການໃຫມ່",
"slug": "ໂຄງການໃຫມ່",
"ສາທາລະນະ": ແທ້
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/campaign/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"name": "ໂຄງການໃຫມ່",
"slug": "ໂຄງການໃຫມ່",
"ສາທາລະນະ": ແທ້
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/campaign/add"
payload = {
"name": "ໂຄງການໃຫມ່",
"slug": "ໂຄງການໃຫມ່",
"ສາທາລະນະ": ແທ້
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"name": "ໂຄງການໃຫມ່",
"slug": "ໂຄງການໃຫມ່",
"ສາທາລະນະ": ແທ້
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"domain": "ໂຄງການພິເສດໃຫມ່",
"public": ຈິງ,
"rotator": "https:\/\/domain.com\/r\/new-campaign",
"list": "https:\/\/domain.com\/u\/admin\/new-campaign-3"
}
https://urlkai.com/api/campaign/:campaignid/assign/:linkid
ສາມາດມອບຫມາຍການເຊື່ອມຕໍ່ສັ້ນໆໃຫ້ແກ່ໂຄງການໂດຍໃຊ້ຈຸດສຸດທ້າຍນີ້. ຈຸດ ສຸດ ທ້າຍ ຮຽກ ຮ້ອງ ID ໂຄງ ການ ແລະ ID link ສັ້ນໆ.
curl --location --request POST 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/:campaignid/assign/:linkid",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/campaign/:campaignid/assign/:linkid"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/:campaignid/assign/:linkid");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ເຊື່ອມຕໍ່ໄດ້ເພີ່ມເຂົ້າໃນໂຄງການແຈກຢາຍໃບເຊີນ."
}
https://urlkai.com/api/campaign/:id/update
ເພື່ອປັບປຸງໂຄງການ, ທ່ານຕ້ອງສົ່ງຂໍ້ມູນທີ່ຖືກຕ້ອງໃນ JSON ຜ່ານຄໍາຮ້ອງຂໍ PUT. ຂໍ້ມູນຕ້ອງຖືກສົ່ງເປັນເນື້ອໃນຂອງຄໍາຮ້ອງຂໍຂອງທ່ານດັ່ງທີ່ສະແດງໄວ້ທາງລຸ່ມນີ້. ຕົວຢ່າງທາງລຸ່ມນີ້ສະແດງໃຫ້ເຫັນຕົວເລກທັງຫມົດທີ່ທ່ານສາມາດສົ່ງໄດ້ແຕ່ທ່ານບໍ່ຈໍາເປັນຕ້ອງສົ່ງທັງຫມົດ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຊື່ | (ຈໍາເປັນ) ຊື່ໂຄງການ |
slug | (ເລືອກ) Rotator Slug |
ສາທາລະນະ | (ເລືອກ) ການເຂົ້າເຖິງ |
curl --location --request PUT 'https://urlkai.com/api/campaign/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "ໂຄງການ Twitter",
"slug": "twitter-campaign",
"ສາທາລະນະ": ແທ້
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "ໂຄງການ Twitter",
"slug": "twitter-campaign",
"ສາທາລະນະ": ແທ້
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/campaign/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"name": "ໂຄງການ Twitter",
"slug": "twitter-campaign",
"ສາທາລະນະ": ແທ້
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/campaign/:id/update"
payload = {
"name": "ໂຄງການ Twitter",
"slug": "twitter-campaign",
"ສາທາລະນະ": ແທ້
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/campaign/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"name": "ໂຄງການ Twitter",
"slug": "twitter-campaign",
"ສາທາລະນະ": ແທ້
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"domain": "Twitter Campaign",
"public": ຈິງ,
"rotator": "https:\/\/domain.com\/r\/twitter-campaign",
"list": "https:\/\/domain.com\/u\/admin\/twitter-campaign-3"
}
https://urlkai.com/api/campaign/:id/delete
ເພື່ອລຶບໂຄງການ, ທ່ານຕ້ອງສົ່ງຄໍາຮ້ອງຂໍ DELETE.
curl --location --request DELETE 'https://urlkai.com/api/campaign/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/campaign/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/campaign/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/campaign/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ໂຄງການຖືກລຶບຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/channels?limit=2&page=1
ເພື່ອຮັບຊ່ອງທາງຂອງ API ທ່ານສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/channels?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channels?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/channels?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channels?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/channels?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"ຊ່ອງ": [
{
"id": 1,
"name": "ຊ່ອງ 1",
"description": "ຄໍາອະທິບາຍຂອງຊ່ອງ 1",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
},
{
"id": 2,
"name": "ຊ່ອງ 2",
"description": "ຄໍາອະທິບາຍຂອງຊ່ອງ 2",
"color": "#FF0000",
"starred": ຜິດ
}
]
}
}
https://urlkai.com/api/channel/:id?limit=1&page=1
ເພື່ອຈະເອົາລາຍການໃນຊ່ອງທາງເລືອກຜ່ານ API ທ່ານສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/channel/:id?limit=1&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/:id?limit=1&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/channel/:id?limit=1&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channel/:id?limit=1&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/channel/:id?limit=1&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"ລາຍການ": [
{
"type": "links",
"id": 1,
"title": "ລິ້ງຕົວຢ່າງຂອງຂ້ອຍ",
"preview": "https:\/\/google.com",
"link": "https:\/\/urlkai.com\/google",
"ວັນທີ": "2022-05-12"
},
{
"type": "ຊີວະພາບ",
"id": 1,
"title": "ຊີວະວິທະຍາຕົວຢ່າງຂອງຂ້ອຍ",
"preview": "https:\/\/urlkai.com\/mybio",
"link": "https:\/\/urlkai.com\/mybio",
"ວັນທີ": "2022-06-01"
}
]
}
}
https://urlkai.com/api/channel/add
ສາມາດເພີ່ມຊ່ອງໄດ້ໂດຍໃຊ້ຈຸດສຸດທ້າຍນີ້.
Parametro | Descrizione |
---|---|
ຊື່ | (ຈໍາເປັນ) ຊື່ຊ່ອງ |
ຄໍາອະທິບາຍ | (ເລືອກ) ຄໍາອະທິບາຍຊ່ອງ |
ສີ | (ເລືອກ) ສີບັດຊ່ອງ (HEX) |
ດວງດາວ | (ເລືອກ) ດວງດາວຊ່ອງວ່າງຫຼືບໍ່ (ຈິງ ຫຼື ຜິດ) |
curl --location --request POST 'https://urlkai.com/api/channel/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/channel/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channel/add"
payload = {
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"name": "ຊ່ອງ ໃຫມ່",
"description": "ຊ່ອງ ໃຫມ່ ຂອງ ຂ້ອຍ",
"ສີ": "#000000",
"starred": ແທ້ ຈິງ
}
https://urlkai.com/api/channel/:channelid/assign/:type/:itemid
ລາຍການສາມາດຖືກມອບຫມາຍໃຫ້ກັບຊ່ອງໃດໆກໍໄດ້ໂດຍການສົ່ງຄໍາຮ້ອງຂໍພ້ອມກັບ id ຊ່ອງ, ປະເພດລາຍການ (link, bio ຫຼື qr) ແລະ item id.
Parametro | Descrizione |
---|---|
:channelid | (ຈໍາເປັນ) ID ຊ່ອງ |
:ປະເພດ | (ຈໍາເປັນ) link ຫຼື bio ຫຼື qr |
:itemid | (ຈໍາເປັນ) ລາຍການ ID |
curl --location --request POST 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ລາຍການທີ່ເພີ່ມເຂົ້າໄປໃນຊ່ອງໄດ້ຢ່າງສໍາເລັດ."
}
https://urlkai.com/api/channel/:id/update
ເພື່ອປັບປຸງຊ່ອງ, ທ່ານຕ້ອງສົ່ງຂໍ້ມູນທີ່ຖືກຕ້ອງໃນ JSON ຜ່ານຄໍາຮ້ອງຂໍ PUT. ຂໍ້ມູນຕ້ອງຖືກສົ່ງເປັນເນື້ອໃນຂອງຄໍາຮ້ອງຂໍຂອງທ່ານດັ່ງທີ່ສະແດງໄວ້ທາງລຸ່ມນີ້. ຕົວຢ່າງທາງລຸ່ມນີ້ສະແດງໃຫ້ເຫັນຕົວເລກທັງຫມົດທີ່ທ່ານສາມາດສົ່ງໄດ້ແຕ່ທ່ານບໍ່ຈໍາເປັນຕ້ອງສົ່ງທັງຫມົດ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຊື່ | (ເລືອກ) ຊື່ຊ່ອງ |
ຄໍາອະທິບາຍ | (ເລືອກ) ຄໍາອະທິບາຍຊ່ອງ |
ສີ | (ເລືອກ) ສີບັດຊ່ອງ (HEX) |
ດວງດາວ | (ເລືອກ) ດວງດາວຊ່ອງວ່າງຫຼືບໍ່ (ຈິງ ຫຼື ຜິດ) |
curl --location --request PUT 'https://urlkai.com/api/channel/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Acme Corp",
"description": "ຊ່ອງສໍາລັບລາຍການສໍາລັບ Acme Corp",
"color": "#FFFFFF",
"starred": ຜິດ
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "Acme Corp",
"description": "ຊ່ອງສໍາລັບລາຍການສໍາລັບ Acme Corp",
"color": "#FFFFFF",
"starred": ຜິດ
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/channel/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"name": "Acme Corp",
"description": "ຊ່ອງສໍາລັບລາຍການສໍາລັບ Acme Corp",
"color": "#FFFFFF",
"starred": ຜິດ
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channel/:id/update"
payload = {
"name": "Acme Corp",
"description": "ຊ່ອງສໍາລັບລາຍການສໍາລັບ Acme Corp",
"color": "#FFFFFF",
"starred": ຜິດ
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/channel/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"name": "Acme Corp",
"description": "ຊ່ອງສໍາລັບລາຍການສໍາລັບ Acme Corp",
"color": "#FFFFFF",
"starred": ຜິດ
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ຊ່ອງໄດ້ຖືກປັບປຸງຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/channel/:id/delete
ເພື່ອລຶບຊ່ອງ, ທ່ານຕ້ອງສົ່ງຄໍາຮ້ອງຂໍ DELETE. ສິ່ງ ຂອງ ທັງ ຫມົດ ຈະ ຖືກ ຍົກ ເລີກ ຄື ກັນ.
curl --location --request DELETE 'https://urlkai.com/api/channel/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/channel/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/channel/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/channel/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ຊ່ອງຖືກລຶບຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/qr?limit=2&page=1
Per ottenere i tuoi codici QR tramite l'API, puoi utilizzare questo endpoint. Puoi anche filtrare i dati (vedi tabella per maggiori informazioni).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/qr?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/qr?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/qr?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"qrs": [
{
"id": 2,
"link": "https:\/\/urlkai.com\/qr\/a2d5e",
"scans": 0,
"name": "Google",
"ວັນທີ": "2020-11-10 18:01:43"
},
{
"id": 1,
"link": "https:\/\/urlkai.com\/qr\/b9edfe",
"scans": 5,
"name": "Google Canada",
"ວັນທີ": "2020-11-10 18:00:25"
}
]
}
}
https://urlkai.com/api/qr/:id
Per ottenere i dettagli per un singolo codice QR tramite l'API, puoi utilizzare questo endpoint.
curl --location --request GET 'https://urlkai.com/api/qr/:id' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr/:id",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/qr/:id',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/qr/:id"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr/:id");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"ລາຍລະອຽດ": {
"id": 1,
"link": "https:\/\/urlkai.com\/qr\/b9edfe",
"scans": 5,
"name": "Google Canada",
"ວັນທີ": "2020-11-10 18:00:25"
},
"ຂໍ້ມູນ": {
"ຄະລິກ": 1,
"uniqueClicks": 1,
"topCountries": {
"ບໍ່ຮູ້ຈັກ": "1"
},
"topReferrers": {
"ໂດຍກົງ, ອີເມວ ແລະ ອື່ນໆ": "1"
},
"topBrowsers": {
"Chrome": "1"
},
"topOs": {
"Windows 10": "1"
},
"socialCount": {
"Facebook": 0,
"Twitter": 0,
"Instagram": 0
}
}
}
https://urlkai.com/api/qr/add
ເພື່ອສ້າງ QR Code, ທ່ານຕ້ອງສົ່ງຂໍ້ມູນທີ່ຖືກຕ້ອງໃນ JSON ຜ່ານຄໍາຮ້ອງຂໍ POST. ຂໍ້ມູນຕ້ອງຖືກສົ່ງເປັນເນື້ອໃນຂອງຄໍາຮ້ອງຂໍຂອງທ່ານດັ່ງທີ່ສະແດງໄວ້ທາງລຸ່ມນີ້. ຕົວຢ່າງທາງລຸ່ມນີ້ສະແດງໃຫ້ເຫັນຕົວເລກທັງຫມົດທີ່ທ່ານສາມາດສົ່ງໄດ້ແຕ່ທ່ານບໍ່ຈໍາເປັນຕ້ອງສົ່ງທັງຫມົດ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ປະເພດ | (ຈໍາເປັນ) text | vcard | ລິ້ງ | ອີເມວ | ໂທລະສັບ | ສື່ສານ | ອິນ ເຕີ ແນັດ |
ຂໍ້ມູນ | (ຈໍາເປັນ) ຂໍ້ ມູນ ທີ່ ຈະ ຝັງ ຢູ່ ໃນ QR code. ຂໍ້ມູນສາມາດເປັນເຊື້ອສາຍຫຼື array ຂຶ້ນກັບປະເພດ |
ພູມຫຼັງ | (ເລືອກ) ສີ RGB ຕົວຢ່າງ: rgb(255,255,255) |
ເບື້ອງຫນ້າ | (ເລືອກ) ສີ RGB ຕົວຢ່າງ: rgb(0,0,0) |
ໂລໂກ້ | (ເລືອກ) ເສັ້ນທາງໄປສູ່ໂລໂກ້ png ຫຼື jpg |
ຊື່ | (ເລືອກ) ຊື່ QR Code |
curl --location --request POST 'https://urlkai.com/api/qr/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR Code API"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR Code API"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/qr/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR Code API"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/qr/add"
payload = {
"type": "link",
"data": "https://google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https://site.com/logo.png",
"name": "QR Code API"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/qr/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR Code API"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"link": "https:\/\/urlkai.com\/qr\/a58f79"
}
https://urlkai.com/api/qr/:id/update
Per aggiornare un codice QR, devi inviare un dato valido in JSON tramite una richiesta PUT. I dati devono essere inviati come corpo grezzo della tua richiesta come mostrato di seguito. L'esempio seguente mostra tutti i parametri che puoi inviare ma non è necessario inviarli tutti (vedi tabella per maggiori informazioni).
Parametro | Descrizione |
---|---|
ຂໍ້ມູນ | (ຈໍາເປັນ) ຂໍ້ ມູນ ທີ່ ຈະ ຝັງ ຢູ່ ໃນ QR code. ຂໍ້ມູນສາມາດເປັນເຊື້ອສາຍຫຼື array ຂຶ້ນກັບປະເພດ |
ພູມຫຼັງ | (ເລືອກ) ສີ RGB ຕົວຢ່າງ: rgb(255,255,255) |
ເບື້ອງຫນ້າ | (ເລືອກ) ສີ RGB ຕົວຢ່າງ: rgb(0,0,0) |
ໂລໂກ້ | (ເລືອກ) ເສັ້ນທາງໄປສູ່ໂລໂກ້ png ຫຼື jpg |
curl --location --request PUT 'https://urlkai.com/api/qr/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/qr/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/qr/:id/update"
payload = {
"type": "link",
"data": "https://google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https://site.com/logo.png"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/qr/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"type": "link",
"ຂໍ້ມູນ": "https:\/\/google.com",
"background": "rgb(255,255,255)",
"foreground": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "QR ໄດ້ ຖືກ ປັບປຸງ ຢ່າງ ສໍາ ເລັດ."
}
https://urlkai.com/api/qr/:id/delete
Per eliminare un codice QR, è necessario inviare una richiesta DELETE.
curl --location --request DELETE 'https://urlkai.com/api/qr/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/qr/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/qr/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/qr/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "QR Code ຖືກລຶບຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/domains?limit=2&page=1
ເພື່ອຈະໄດ້ຮັບ branded domains ຂອງເຈົ້າຜ່ານ API, ເຈົ້າສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/domains?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/domains?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/domains?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/domains?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/domains?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"domains": [
{
"id": 1,
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
},
{
"id": 2,
"domain": "https:\/\/domain2.com",
"redirectroot": "https:\/\/rootdomain2.com",
"redirect404": "https:\/\/rootdomain2.com\/404"
}
]
}
}
https://urlkai.com/api/domain/add
ສາມາດເພີ່ມໂດເມນໄດ້ໂດຍໃຊ້ຈຸດສຸດທ້າຍນີ້. ກະລຸນາໃຫ້ແນ່ໃຈວ່າ domain ຖືກຊີ້ໄປຫາ server ຂອງພວກເຮົາຢ່າງຖືກຕ້ອງ.
Parametro | Descrizione |
---|---|
ໂດເມນ | (ຈໍາເປັນ) Branded domain ລວມທັງ http ຫຼື https |
redirectroot | (ເລືອກ) Root redirect ເມື່ອມີຄົນມາຢ້ຽມຢາມໂດເມນຂອງເຈົ້າ |
ປ່ຽນແປງ404 | (ເລືອກ) Custom 404 redirect |
curl --location --request POST 'https://urlkai.com/api/domain/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/domain/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/domain/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/domain/add"
payload = {
"domain": "https://domain1.com",
"redirectroot": "https://rootdomain.com",
"redirect404": "https://rootdomain.com/404"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/domain/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 1
}
https://urlkai.com/api/domain/:id/update
ເພື່ອປັບປຸງ branded domain, ທ່ານຕ້ອງສົ່ງຂໍ້ມູນທີ່ຖືກຕ້ອງໃນ JSON ຜ່ານຄໍາຮ້ອງຂໍ PUT. ຂໍ້ມູນຕ້ອງຖືກສົ່ງເປັນເນື້ອໃນຂອງຄໍາຮ້ອງຂໍຂອງທ່ານດັ່ງທີ່ສະແດງໄວ້ທາງລຸ່ມນີ້. ຕົວຢ່າງທາງລຸ່ມນີ້ສະແດງໃຫ້ເຫັນຕົວເລກທັງຫມົດທີ່ທ່ານສາມາດສົ່ງໄດ້ແຕ່ທ່ານບໍ່ຈໍາເປັນຕ້ອງສົ່ງທັງຫມົດ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
redirectroot | (ເລືອກ) Root redirect ເມື່ອມີຄົນມາຢ້ຽມຢາມໂດເມນຂອງເຈົ້າ |
ປ່ຽນແປງ404 | (ເລືອກ) Custom 404 redirect |
curl --location --request PUT 'https://urlkai.com/api/domain/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/domain/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/domain/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/domain/:id/update"
payload = {
"redirectroot": "https://rootdomain-new.com",
"redirect404": "https://rootdomain-new.com/404"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/domain/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "Domain ໄດ້ ຖືກ ປັບປຸງ ຢ່າງ ສໍາ ເລັດ."
}
https://urlkai.com/api/domain/:id/delete
ເພື່ອລຶບໂດເມນ, ທ່ານຕ້ອງສົ່ງຄໍາຮ້ອງຂໍ DELETE.
curl --location --request DELETE 'https://urlkai.com/api/domain/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/domain/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/domain/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/domain/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/domain/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "Domain ຖືກລຶບຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/urls?limit=2&page=1o=date
Per ottenere i tuoi collegamenti tramite l'API, puoi utilizzare questo endpoint. Puoi anche filtrare i dati (vedi tabella per maggiori informazioni).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
ລະບຽບ | (ເລືອກ) ຈັດແບ່ງຂໍ້ມູນລະຫວ່າງວັນທີ ຫຼື ຄະລິກ |
ສັ້ນໆ | (ເລືອກ) ຄົ້ນຫາໂດຍໃຊ້ url ສັ້ນໆ. ຂໍໃຫ້ສັງເກດວ່າເມື່ອທ່ານໃຊ້ parameter ສັ້ນໆ, parameter ອື່ນໆທັງຫມົດຈະຖືກປະຕິເສດ ແລະ ຖ້າມີການສອດຄ່ອງ Single Link response ຈະຖືກສົ່ງຄືນ. |
q | (ເລືອກ) ຄົ້ນຫາການເຊື່ອມຕໍ່ໂດຍໃຊ້ຄໍາສັບ |
curl --location --request GET 'https://urlkai.com/api/urls?limit=2&page=1o=date' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/urls?limit=2&page=1o=date",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/urls?limit=2&page=1o=date',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/urls?limit=2&page=1o=date"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/urls?limit=2&page=1o=date");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"urls": [
{
"id": 2,
"alias": "google",
"shorturl": "https:\/\/urlkai.com\/google",
"longurl": "https:\/\/google.com",
"ຄະລິກ": 0,
"title": "Google",
"description": "",
"ວັນທີ": "2020-11-10 18:01:43"
},
{
"id": 1,
"alias": "googlecanada",
"shorturl": "https:\/\/urlkai.com\/googlecanada",
"longurl": "https:\/\/google.ca",
"ຄະລິກ": 0,
"title": "Google Canada",
"description": "",
"ວັນທີ": "2020-11-10 18:00:25"
}
]
}
}
https://urlkai.com/api/url/:id
Per ottenere i dettagli per un singolo collegamento tramite l'API, puoi utilizzare questo endpoint.
curl --location --request GET 'https://urlkai.com/api/url/:id' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/:id",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/url/:id',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/url/:id"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/url/:id");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 1,
"ລາຍລະອຽດ": {
"id": 1,
"shorturl": "https:\/\/urlkai.com\/googlecanada",
"longurl": "https:\/\/google.com",
"title": "Google",
"description": "",
"ສະຖານທີ່": {
"ກາ ນາ ດາ": "https:\/\/google.ca",
"ສະຫະລັດອາເມລິກາ": "https:\/\/google.us"
},
"ອຸປະກອນ": {
"iPhone": "https:\/\/google.com",
"android": "https:\/\/google.com"
},
"expiry": null,
"ວັນທີ": "2020-11-10 18:01:43"
},
"ຂໍ້ມູນ": {
"ຄະລິກ": 0,
"uniqueClicks": 0,
"topCountries": 0,
"topReferrers": 0,
"topBrowsers": 0,
"topOs": 0,
"socialCount": {
"Facebook": 0,
"Twitter": 0,
"Google": 0
}
}
}
https://urlkai.com/api/url/add
Per abbreviare un collegamento, devi inviare un dato valido in JSON tramite una richiesta POST. I dati devono essere inviati come corpo grezzo della tua richiesta come mostrato di seguito. L'esempio seguente mostra tutti i parametri che puoi inviare ma non è necessario inviarli tutti (vedi tabella per maggiori informazioni).
Parametro | Descrizione |
---|---|
URL | (ຈໍາເປັນ) URL ຍາວເພື່ອສັ້ນ. |
ທໍານຽມ | (ເລືອກ) ຊື່ຫລິ້ນແບບສະເພາະແທນຊື່ຫລິ້ນແບບບັງເອີນ. |
ປະເພດ | (ເລືອກ) ປະເພດການປ່ຽນທິດທາງ [direct, frame, splash], ເທົ່ານັ້ນ id ສໍາລັບ custom splash page ຫຼື overlay-id ສໍາລັບຫນ້າ CTA |
ລະຫັດຜ່ານ | (ເລືອກ) ການປົກປ້ອງລະຫັດຜ່ານ |
ໂດເມນ | (ເລືອກ) Custom Domain |
ການສິ້ນສຸດ | (ເລືອກ) ການສິ້ນສຸດຂອງຕົວຢ່າງການເຊື່ອມຕໍ່ 2021-09-28 23:11:16 |
geotarget | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍທາງພູມສາດ |
ອຸປະກອນ | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍຂອງອຸປະກ |
languagetarget | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍພາສາ |
metatitle | (ເລືອກ) ຕໍາແຫນ່ງ Meta |
ຄໍາອະທິບາຍ | (ເລືອກ) ຄໍາ ອະທິບາຍ Meta |
ຮູບພາບ metaimage | (ເລືອກ) ເຊື່ອມຕໍ່ກັບຮູບພາບ jpg ຫຼື png |
ຄໍາອະທິບາຍ | (ເລືອກ) ບັນທຶກ ຫຼື ຄໍາອະທິບາຍ |
pixels | (ເລືອກ) Array ຂອງ pixel id |
ຊ່ອງ | (ເລືອກ) ID ຊ່ອງ |
ໂຄງການ | (ເລືອກ) ລະບົບໂຄງການ |
deeplink | (ເລືອກ) ວັດຖຸທີ່ມີການເຊື່ອມຕໍ່ໃນຮ້ານແອັບ. ເມື່ອໃຊ້ສິ່ງນີ້, ມັນສໍາຄັນທີ່ຈະຕັ້ງເປົ້າຫມາຍອຸປະກອນນໍາອີກ. (ໃຫມ່) ບັດນີ້ທ່ານສາມາດຕັ້ງparameter "auto" ເປັນ true ເພື່ອສ້າງລິ້ງເລິກໂດຍອັດຕະໂນມັດຈາກລິ້ງຍາວທີ່ໃຫ້ໄວ້. |
ສະຖານະພາບ | (ເລືອກ) ສາທາລະນະ ຫຼື ສ່ວນຕົວ (ມາດຕະຖານ) |
curl --location --request POST 'https://urlkai.com/api/url/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https:\/\/google.com",
"status": "ເອກະຊົນ",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"metatitle": "ບໍ່ແມ່ນ Google",
"metadescription": "ບໍ່ແມ່ນຄໍາອະທິບາຍຂອງ Google",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "ສໍາລັບ facebook",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"ໂຄງການ": 1,
"deeplink": {
"ອັດຕະໂນມັດ": ແທ້,
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"ພາສາ": "en",
"link": "https:\/\/google.com"
},
{
"ພາສາ": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"url": "https:\/\/google.com",
"status": "ເອກະຊົນ",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"metatitle": "ບໍ່ແມ່ນ Google",
"metadescription": "ບໍ່ແມ່ນຄໍາອະທິບາຍຂອງ Google",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "ສໍາລັບ facebook",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"ໂຄງການ": 1,
"deeplink": {
"ອັດຕະໂນມັດ": ແທ້,
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"ພາສາ": "en",
"link": "https:\/\/google.com"
},
{
"ພາສາ": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/url/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"url": "https:\/\/google.com",
"status": "ເອກະຊົນ",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"metatitle": "ບໍ່ແມ່ນ Google",
"metadescription": "ບໍ່ແມ່ນຄໍາອະທິບາຍຂອງ Google",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "ສໍາລັບ facebook",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"ໂຄງການ": 1,
"deeplink": {
"ອັດຕະໂນມັດ": ແທ້,
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"ພາສາ": "en",
"link": "https:\/\/google.com"
},
{
"ພາສາ": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/url/add"
payload = {
"url": "https://google.com",
"status": "ເອກະຊົນ",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"metatitle": "ບໍ່ແມ່ນ Google",
"metadescription": "ບໍ່ແມ່ນຄໍາອະທິບາຍຂອງ Google",
"metaimage": "https://www.mozilla.org/media/protocol/img/logos/firefox/browser/og.4ad05d4125a5.png",
"description": "ສໍາລັບ facebook",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"ໂຄງການ": 1,
"deeplink": {
"ອັດຕະໂນມັດ": ແທ້,
"apple": "https://apps.apple.com/us/app/google/id284815942",
"google": "https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https://google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https://google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https://google.com"
},
{
"device": "Android",
"link": "https://google.com"
}
],
"languagetarget": [
{
"ພາສາ": "en",
"link": "https://google.com"
},
{
"ພາສາ": "fr",
"link": "https://google.ca"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/url/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"url": "https:\/\/google.com",
"status": "ເອກະຊົນ",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"metatitle": "ບໍ່ແມ່ນ Google",
"metadescription": "ບໍ່ແມ່ນຄໍາອະທິບາຍຂອງ Google",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "ສໍາລັບ facebook",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"ໂຄງການ": 1,
"deeplink": {
"ອັດຕະໂນມັດ": ແທ້,
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"ພາສາ": "en",
"link": "https:\/\/google.com"
},
{
"ພາສາ": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"shorturl": "https:\/\/urlkai.com\/google"
}
https://urlkai.com/api/url/:id/update
Per aggiornare un collegamento, devi inviare un dato valido in JSON tramite una richiesta PUT. I dati devono essere inviati come corpo grezzo della tua richiesta come mostrato di seguito. L'esempio seguente mostra tutti i parametri che puoi inviare ma non è necessario inviarli tutti (vedi tabella per maggiori informazioni).
Parametro | Descrizione |
---|---|
URL | (ຈໍາເປັນ) URL ຍາວເພື່ອສັ້ນ. |
ທໍານຽມ | (ເລືອກ) ຊື່ຫລິ້ນແບບສະເພາະແທນຊື່ຫລິ້ນແບບບັງເອີນ. |
ປະເພດ | (ເລືອກ) ປະເພດການປ່ຽນທິດທາງ [direct, frame, splash] |
ລະຫັດຜ່ານ | (ເລືອກ) ການປົກປ້ອງລະຫັດຜ່ານ |
ໂດເມນ | (ເລືອກ) Custom Domain |
ການສິ້ນສຸດ | (ເລືອກ) ການສິ້ນສຸດຂອງຕົວຢ່າງການເຊື່ອມຕໍ່ 2021-09-28 23:11:16 |
geotarget | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍທາງພູມສາດ |
ອຸປະກອນ | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍຂອງອຸປະກ |
languagetarget | (ເລືອກ) ຂໍ້ມູນການຕັ້ງເປົ້າຫມາຍພາສາ |
metatitle | (ເລືອກ) ຕໍາແຫນ່ງ Meta |
ຄໍາອະທິບາຍ | (ເລືອກ) ຄໍາ ອະທິບາຍ Meta |
ຮູບພາບ metaimage | (ເລືອກ) ເຊື່ອມຕໍ່ກັບຮູບພາບ jpg ຫຼື png |
pixels | (ເລືອກ) Array ຂອງ pixel id |
ຊ່ອງ | (ເລືອກ) ID ຊ່ອງ |
ໂຄງການ | (ເລືອກ) ລະບົບໂຄງການ |
deeplink | (ເລືອກ) ວັດຖຸທີ່ມີການເຊື່ອມຕໍ່ໃນຮ້ານແອັບ. ເມື່ອໃຊ້ສິ່ງນີ້, ມັນສໍາຄັນທີ່ຈະຕັ້ງເປົ້າຫມາຍອຸປະກອນນໍາອີກ. |
curl --location --request PUT 'https://urlkai.com/api/url/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https:\/\/google.com",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"deeplink": {
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"url": "https:\/\/google.com",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"deeplink": {
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/url/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"url": "https:\/\/google.com",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"deeplink": {
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/url/:id/update"
payload = {
"url": "https://google.com",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"deeplink": {
"apple": "https://apps.apple.com/us/app/google/id284815942",
"google": "https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https://google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https://google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https://google.com"
},
{
"device": "Android",
"link": "https://google.com"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/url/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"url": "https:\/\/google.com",
"custom": "google",
"password": "mypass",
"ວັນສິ້ນສຸດ": "2020-11-11 12:00:00",
"type": "splash",
"pixels": [
1,
2,
3,
4
],
"ຊ່ອງ": 1,
"deeplink": {
"apple": "https:\/\/apps.apple.com\/us\/app\/google\/id284815942",
"google": "https:\/\/play.google.com\/store\/apps\/details?id=com.google.android.googlequicksearchbox&hl=en_CA≷=US"
},
"geotarget": [
{
"location": "ກາ ນາ ດາ",
"link": "https:\/\/google.ca"
},
{
"location": "ສະຫະລັດອາເມລິກາ",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"device": "iPhone",
"link": "https:\/\/google.com"
},
{
"device": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"name": "aff",
"ຄ່າ": "3"
},
{
"ອຸປະກອນ": "gtm_source",
"link": "API"
}
]
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 3,
"ສັ້ນ": "https:\/\/urlkai.com\/google"
}
https://urlkai.com/api/url/:id/delete
Per eliminare un collegamento, è necessario inviare una richiesta DELETE.
curl --location --request DELETE 'https://urlkai.com/api/url/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/url/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/url/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/url/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "ການລຶບລິ້ງໄດ້ສໍາເລັດແລ້ວ"
}
https://urlkai.com/api/overlay?limit=2&page=1
ເພື່ອຈະໄດ້ cta overlays ຜ່ານ API, ທ່ານສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/overlay?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/overlay?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/overlay?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/overlay?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/overlay?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"CTA": [
{
"id": 1,
"type": "ຂ່າວສານ",
"name": "ຜະລິດຕະພັນ 1 ໂຄສະນາ",
"ວັນທີ": "2020-11-10 18:00:00"
},
{
"id": 2,
"type": "ຕິດຕໍ່",
"name": "ຫນ້າຕິດຕໍ່",
"ວັນທີ": "2020-11-10 18:10:00"
}
]
}
}
https://urlkai.com/api/pixels?limit=2&page=1
ເພື່ອຈະໄດ້ຮັບໂປຣແກຣມ pixels ຂອງເຈົ້າຜ່ານ API, ເຈົ້າສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/pixels?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixels?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/pixels?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/pixels?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/pixels?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"pixels": [
{
"id": 1,
"type": "gtmpixel",
"name": "GTM Pixel",
"tag": "GA-123456789",
"ວັນທີ": "2020-11-10 18:00:00"
},
{
"id": 2,
"type": "twitterpixel",
"name": "Twitter Pixel",
"tag": "1234567",
"ວັນທີ": "2020-11-10 18:10:00"
}
]
}
}
https://urlkai.com/api/pixel/add
pixel ສາມາດສ້າງໄດ້ໂດຍໃຊ້ຈຸດສຸດທ້າຍນີ້. ທ່ານຕ້ອງສົ່ງປະເພດ pixel ແລະ tag.
Parametro | Descrizione |
---|---|
ປະເພດ | (ຈໍາເປັນ) gtmpixel | gapixel | fbpixel | AdWordsPixel | linkedinpixel | Twitterpixel | adrollpixel | quorapixel | pinterest | ບິງ | Snapchat | reddit | tiktok |
ຊື່ | (ຈໍາເປັນ) ຊື່ສະເພາະສໍາລັບ pixel ຂອງເຈົ້າ |
ແທັກ | (ຈໍາເປັນ) ແທັກສໍາລັບ pixel |
curl --location --request POST 'https://urlkai.com/api/pixel/add' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "gtmpixel",
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixel/add",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "gtmpixel",
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://urlkai.com/api/pixel/add',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"type": "gtmpixel",
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/pixel/add"
payload = {
"type": "gtmpixel",
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/pixel/add");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"type": "gtmpixel",
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"id": 1
}
https://urlkai.com/api/pixel/:id/update
ເພື່ອປັບປຸງ pixel, ທ່ານຕ້ອງສົ່ງຂໍ້ມູນທີ່ຖືກຕ້ອງໃນ JSON ຜ່ານຄໍາຮ້ອງຂໍ PUT. ຂໍ້ມູນຕ້ອງຖືກສົ່ງເປັນເນື້ອໃນຂອງຄໍາຮ້ອງຂໍຂອງທ່ານດັ່ງທີ່ສະແດງໄວ້ທາງລຸ່ມນີ້. ຕົວຢ່າງທາງລຸ່ມນີ້ສະແດງໃຫ້ເຫັນຕົວເລກທັງຫມົດທີ່ທ່ານສາມາດສົ່ງໄດ້ແຕ່ທ່ານບໍ່ຈໍາເປັນຕ້ອງສົ່ງທັງຫມົດ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຊື່ | (ເລືອກ) ຊື່ສະເພາະສໍາລັບ pixel ຂອງເຈົ້າ |
ແທັກ | (ຈໍາເປັນ) ແທັກສໍາລັບ pixel |
curl --location --request PUT 'https://urlkai.com/api/pixel/:id/update' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixel/:id/update",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'PUT',
'url': 'https://urlkai.com/api/pixel/:id/update',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
ເນື້ອໃນ: JSON.stringify({
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}),
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/pixel/:id/update"
payload = {
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/pixel/:id/update");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{
"name": "GTM ຂອງຂ້ອຍ",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "Pixel ໄດ້ ຖືກ ປັບປຸງ ຢ່າງ ສໍາ ເລັດ."
}
https://urlkai.com/api/pixel/:id/delete
ເພື່ອລຶບ pixel, ທ່ານຕ້ອງສົ່ງຄໍາຮ້ອງຂໍ DELETE.
curl --location --request DELETE 'https://urlkai.com/api/pixel/:id/delete' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixel/:id/delete",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ລຶບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'ລຶບ',
'url': 'https://urlkai.com/api/pixel/:id/delete',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/pixel/:id/delete"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("ລຶບ", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/pixel/:id/delete");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": 0,
"message": "Pixel ຖືກລຶບຢ່າງສໍາເລັດແລ້ວ."
}
https://urlkai.com/api/splash?limit=2&page=1
ເພື່ອຈະໄດ້ຮັບຫນ້າສະດວກສະເພາະຜ່ານ API ທ່ານສາມາດໃຊ້ຈຸດສຸດທ້າຍນີ້ໄດ້. ທ່ານຍັງສາມາດຕອງຂໍ້ມູນໄດ້ (ເບິ່ງຕາຕະລາງສໍາລັບຂໍ້ມູນເພີ່ມເຕີມ).
Parametro | Descrizione |
---|---|
ຈໍາກັດ | (ເລືອກ) ຜົນຂໍ້ມູນຕໍ່ຫນ້າ |
ຫນ້າ | (ເລືອກ) ຄໍາຮ້ອງຂໍຫນ້າປະຈຸບັນ |
curl --location --request GET 'https://urlkai.com/api/splash?limit=2&page=1' \
--header 'ການອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/splash?limit=2&page=1",
CURLOPT_RETURNTRANSFER => ຈິງ,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => ແທ້,
CURLOPT_CUSTOMREQUEST => "ຮັບ",
CURLOPT_HTTPHEADER => [
"ອະນຸຍາດ: ຜູ້ຖື YOURAPIKEY",
"Content-Type: application/json",
],
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://urlkai.com/api/splash?limit=2&page=1',
'ຫົວຂໍ້': {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
},
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(ຕອບສະຫນອງ.ຮ່າງກາຍ);
});
ຄໍາຮ້ອງຂໍນໍາເຂົ້າ
url = "https://urlkai.com/api/splash?limit=2&page=1"
payload = {}
ຫົວຂໍ້ = {
'ອະນຸຍາດ': 'ຜູ້ຖື YOURAPIKEY',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(ຄໍາຕອບ.ຂໍ້ຄວາມ)
var client = ໃຫມ່ HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/splash?limit=2&page=1");
ຄໍາຮ້ອງຂໍ. Headers.Add("ອະນຸຍາດ", "ຜູ້ຖື YOURAPIKEY");
var content = new StringContent("{}", System.Text.Encoding.UTF8, "application/json");
ຄໍາຮ້ອງຂໍ. ເນື້ອໃນ = ເນື້ອໃນ;
var response = ລໍຖ້າລູກຄ້າ. SendAsync(request);
ການ ຕອບ ຮັບ. EnsureSuccessStatusCode();
Console.WriteLine(ລໍຖ້າຄໍາຕອບ. Content.ReadAsStringAsync());
{
"ຜິດພາດ": "0",
"ຂໍ້ມູນ": {
"ຜົນ": 2,
"perpage": 2,
"ຫນ້າປັດຈຸບັນ": 1,
"ຫນ້າ ຕໍ່ ໄປ": 1,
"maxpage": 1,
"splash": [
{
"id": 1,
"name": "ຜະລິດຕະພັນ 1 ໂຄສະນາ",
"ວັນທີ": "2020-11-10 18:00:00"
},
{
"id": 2,
"name": "ຜະລິດຕະພັນ 2 ໂຄສະນາ",
"ວັນທີ": "2020-11-10 18:10:00"
}
]
}
}