Damit Anfragen vom System verarbeitet werden können, ist ein API-Schlüssel erforderlich. Sobald sich ein Benutzer registriert, wird automatisch ein API-Schlüssel für diesen Benutzer generiert. Der API-Schlüssel muss mit jeder Anfrage gesendet werden (siehe vollständiges Beispiel unten). Wenn der API-Schlüssel nicht gesendet wird oder abgelaufen ist, wird ein Fehler angezeigt. Bitte achten Sie darauf, Ihren API-Schlüssel geheim zu halten, um Missbrauch zu verhindern.
Um sich beim API-System zu authentifizieren, müssen Sie bei jeder Anfrage Ihren API-Schlüssel als Autorisierungstoken senden. Unten sehen Sie einen Beispielcode.
krul --locatie --verzoek POST 'https://urlkai.com/api/account' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/account',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
lichaam: ''
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/account"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
Unsere API verfügt über einen Ratenbegrenzer zum Schutz vor Anfragenspitzen, um ihre Stabilität zu maximieren. Unser Ratenbegrenzer ist derzeit auf 30 Anfragen pro 1 Minute begrenzt. Houd er rekening mee dat het tarief kan veranderen afhankelijk van het geabonneerde abonnement.
Neben der Antwort werden mehrere Header gesendet, die untersucht werden können, um verschiedene Informationen über die Anfrage zu ermitteln.
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 29
X-RateLimit-Reset: TIMESTAMP
Alle API-Antworten werden standardmäßig im JSON-Format zurückgegeben. Um diese in verwertbare Daten umzuwandeln, muss je nach Sprache die entsprechende Funktion verwendet werden. In PHP kann die Funktion json_decode() verwendet werden, um die Daten entweder in ein Objekt (Standard) oder ein Array (den zweiten Parameter auf true zu setzen) zu konvertieren. Es ist sehr wichtig, den Fehlerschlüssel zu überprüfen, da er Auskunft darüber gibt, ob ein Fehler aufgetreten ist oder nicht. Sie können auch den Header-Code überprüfen.
{
"error": 1,
"message": "An error occurred"
}
https://urlkai.com/api/splash?limit=2&page=1
Als u aangepaste splash-pagina's wilt ophalen via de API, kunt u dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/splash?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/splash?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/splash?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage (HttpMethod.Get, "https://urlkai.com/api/splash?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"plons": [
{
"id": 1,
"name": "Product 1 Promo",
"datum": "2020-11-10 18:00:00"
},
{
"id": 2,
"name": "Product 2 Promo",
"datum": "2020-11-10 18:10:00"
}
]
}
}
https://urlkai.com/api/overlay?limit=2&page=1
Om cta-overlays via de API te krijgen, kunt u dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/overlay?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/overlay?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/overlay?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/overlay?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"CTA": [
{
"id": 1,
"type": "bericht",
"name": "Product 1 Promo",
"datum": "2020-11-10 18:00:00"
},
{
"id": 2,
"type": "contactpersoon",
"name": "Pagina voor contactpersonen",
"datum": "2020-11-10 18:10:00"
}
]
}
}
https://urlkai.com/api/campaigns?limit=2&page=1
Om je campagnes via de API te krijgen, kun je dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
curl --locatie --verzoek GET 'https://urlkai.com/api/campaigns?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/campaigns?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/campaigns?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/campaigns?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"campagnes": [
{
"id": 1,
"name": "Voorbeeld campagne",
"openbaar": onwaar,
"rotator": onwaar,
"list": "https:\/\/domain.com\/u\/admin\/list-1"
},
{
"id": 2,
"domain": "Facebook-campagne",
"openbaar": waar,
"rotator": "https:\/\/domain.com\/r\/test",
"list": "https:\/\/domain.com\/u\/admin\/test-2"
}
]
}
}
https://urlkai.com/api/campaign/add
Met behulp van dit eindpunt kan een campagne worden toegevoegd.
Parameter | Beschreibung |
---|---|
naam | (optioneel) Naam van de campagne |
naaktslak | (optioneel) Rotator naaktslak |
publiek | (optioneel) Toegang |
krul --locatie --verzoek POST 'https://urlkai.com/api/campaign/add' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nieuwe campagne",
"slug": "nieuwe-campagne",
"Publiek": waar
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/add",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "Nieuwe campagne",
"slug": "nieuwe-campagne",
"Publiek": waar
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/campaign/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"name": "Nieuwe campagne",
"slug": "nieuwe-campagne",
"Publiek": waar
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/campaign/add"
laadvermogen = {
"name": "Nieuwe campagne",
"slug": "nieuwe-campagne",
"Publiek": waar
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"name": "Nieuwe campagne",
"slug": "nieuwe-campagne",
"Publiek": waar
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"domain": "Nieuwe campagne",
"openbaar": waar,
"rotator": "https:\/\/domain.com\/r\/nieuwe-campagne",
"list": "https:\/\/domain.com\/u\/admin\/new-campaign-3"
}
https://urlkai.com/api/campaign/:campaignid/assign/:linkid
Met behulp van dit eindpunt kan een korte link aan een campagne worden toegewezen. Voor het eindpunt zijn de campagne-ID en de korte link-ID vereist.
curl --locatie --verzoek POST 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/campaign/:campaignid/assign/:linkid',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/campaign/:campaignid/assign/:linkid"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/campaign/:campaignid/assign/:linkid");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Link succesvol toegevoegd aan de campagne."
}
https://urlkai.com/api/campaign/:id/update
Om een campagne bij te werken, moet u geldige gegevens in JSON verzenden via een PUT-verzoek. De gegevens moeten worden verzonden als de ruwe tekst van uw verzoek, zoals hieronder weergegeven. Het onderstaande voorbeeld toont alle parameters die u kunt verzenden, maar u bent niet verplicht om alles te verzenden (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
naam | (verplicht) Naam van de campagne |
naaktslak | (optioneel) Rotator naaktslak |
publiek | (optioneel) Toegang |
krul --locatie --verzoek PUT 'https://urlkai.com/api/campaign/:id/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Twitter-campagne",
"slug": "Twitter-campagne",
"Publiek": waar
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/campaign/:id/update",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "Twitter-campagne",
"slug": "Twitter-campagne",
"Publiek": waar
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/campaign/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"name": "Twitter-campagne",
"slug": "Twitter-campagne",
"Publiek": waar
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/campaign/:id/update"
laadvermogen = {
"name": "Twitter-campagne",
"slug": "Twitter-campagne",
"Publiek": waar
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/campaign/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"name": "Twitter-campagne",
"slug": "Twitter-campagne",
"Publiek": waar
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"domain": "Twitter-campagne",
"openbaar": waar,
"rotator": "https:\/\/domain.com\/r\/twitter-campagne",
"list": "https:\/\/domain.com\/u\/admin\/twitter-campaign-3"
}
https://urlkai.com/api/campaign/:id/delete
Als u een campagne wilt verwijderen, moet u een DELETE-verzoek verzenden.
curl --locatie --verzoek DELETE 'https://urlkai.com/api/campaign/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/campaign/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/campaign/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/campaign/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Campagne is succesvol verwijderd."
}
https://urlkai.com/api/channels?limit=2&page=1
Om je kanalen via de API te krijgen, kun je dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/channels?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/channels?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channels?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/channels?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"kanalen": [
{
"id": 1,
"name": "Kanaal 1",
"description": "Beschrijving van kanaal 1",
"kleur": "#000000",
"Starred": waar
},
{
"id": 2,
"name": "Kanaal 2",
"description": "Beschrijving van kanaal 2",
"kleur": "#FF0000",
"Starred": Onwaar
}
]
}
}
https://urlkai.com/api/channel/:id?limit=1&page=1
Om items in een bepaald kanaal via de API te krijgen, kunt u dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/channel/:id?limit=1&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/channel/:id?limit=1&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channel/:id?limit=1&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage (HttpMethod.Get, "https://urlkai.com/api/channel/:id?limit=1&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"Artikelen": [
{
"type": "koppelingen",
"id": 1,
"title": "Mijn voorbeeldlink",
"preview": "https:\/\/google.com",
"link": "https:\/\/urlkai.com\/google",
"datum": "2022-05-12"
},
{
"type": "bio",
"id": 1,
"title": "Mijn voorbeeldbio",
"preview": "https:\/\/urlkai.com\/mybio",
"link": "https:\/\/urlkai.com\/mybio",
"datum": "2022-06-01"
}
]
}
}
https://urlkai.com/api/channel/add
Met behulp van dit eindpunt kan een kanaal worden toegevoegd.
Parameter | Beschreibung |
---|---|
naam | (verplicht) Naam van het kanaal |
beschrijving | (optioneel) Beschrijving van het kanaal |
Kleur | (optioneel) Kleur kanaalbadge (HEX) |
Speelde | (optioneel) Het kanaal een ster geven of niet (waar of niet waar) |
krul --locatie --verzoek POST 'https://urlkai.com/api/channel/add' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/add",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/channel/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channel/add"
laadvermogen = {
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"name": "Nieuw kanaal",
"description": "Mijn nieuwe kanaal",
"kleur": "#000000",
"Starred": waar
}
https://urlkai.com/api/channel/:channelid/assign/:type/:itemid
Een item kan aan elk kanaal worden toegewezen door een verzoek te sturen met de kanaal-ID, het itemtype (links, bio of qr) en de item-ID.
Parameter | Beschreibung |
---|---|
:kanaalid | (verplicht) Kanaal-ID |
:type | (verplichte) links of bio of QR |
:itemid | (verplicht) Artikel-ID |
krul --locatie --verzoek POST 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/channel/:channelid/assign/:type/:itemid',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/channel/:channelid/assign/:type/:itemid");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Item succesvol toegevoegd aan het kanaal."
}
https://urlkai.com/api/channel/:id/update
Als u een kanaal wilt bijwerken, moet u geldige gegevens in JSON verzenden via een PUT-verzoek. De gegevens moeten worden verzonden als de ruwe tekst van uw verzoek, zoals hieronder weergegeven. Het onderstaande voorbeeld toont alle parameters die u kunt verzenden, maar u bent niet verplicht om alles te verzenden (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
naam | (optioneel) Naam van het kanaal |
beschrijving | (optioneel) Beschrijving van het kanaal |
Kleur | (optioneel) Kleur kanaalbadge (HEX) |
Speelde | (optioneel) Het kanaal een ster geven of niet (waar of niet waar) |
krul --locatie --verzoek PUT 'https://urlkai.com/api/channel/:id/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"naam": "Acme Corp",
"description": "kanaal voor artikelen voor Acme Corp",
"kleur": "#FFFFFF",
"Starred": Onwaar
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/channel/:id/update",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"naam": "Acme Corp",
"description": "kanaal voor artikelen voor Acme Corp",
"kleur": "#FFFFFF",
"Starred": Onwaar
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/channel/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"naam": "Acme Corp",
"description": "kanaal voor artikelen voor Acme Corp",
"kleur": "#FFFFFF",
"Starred": Onwaar
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channel/:id/update"
laadvermogen = {
"naam": "Acme Corp",
"description": "kanaal voor artikelen voor Acme Corp",
"kleur": "#FFFFFF",
"Starred": Onwaar
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/channel/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"naam": "Acme Corp",
"description": "kanaal voor artikelen voor Acme Corp",
"kleur": "#FFFFFF",
"Starred": Onwaar
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Kanaal is succesvol bijgewerkt."
}
https://urlkai.com/api/channel/:id/delete
Als je een kanaal wilt verwijderen, moet je een DELETE-verzoek verzenden. Alle items worden ook niet toegewezen.
krul --locatie --verzoek DELETE 'https://urlkai.com/api/channel/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/channel/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/channel/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/channel/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Kanaal is succesvol verwijderd."
}
https://urlkai.com/api/account
Um Informationen über das Konto zu erhalten, können Sie eine Anfrage an diesen Endpunkt senden, der Daten über das Konto zurückgibt.
krul --locatie --verzoek GET 'https://urlkai.com/api/account' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/account',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/account"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/account");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"gegevens": {
"id": 1,
"e-mail": " [e-mail beveiligd] ",
"username": "sampleuser",
"avatar": "https:\/\/domain.com\/content\/avatar.png",
"status": "pro",
"expires": "2022-11-15 15:00:00",
"geregistreerd": "2020-11-10 18:01:43"
}
}
https://urlkai.com/api/account/update
Um Informationen zu dem Konto zu aktualisieren, können Sie eine Anfrage an diesen Endpunkt senden und er aktualisiert die Daten zu dem Konto.
krul --locatie --verzoek PUT 'https://urlkai.com/api/account/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"e-mail": " [e-mail beveiligd] ",
"password": "nieuwwachtwoord"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/account/update",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"e-mail": " [e-mail beveiligd] ",
"password": "nieuwwachtwoord"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/account/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"e-mail": " [e-mail beveiligd] ",
"password": "nieuwwachtwoord"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/account/update"
laadvermogen = {
"e-mail": " [e-mail beveiligd] ",
"password": "nieuwwachtwoord"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/account/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"e-mail": " [e-mail beveiligd] ",
"password": "nieuwwachtwoord"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Account is bijgewerkt."
}
https://urlkai.com/api/domains?limit=2&page=1
Om uw merkdomeinen via de API te krijgen, kunt u dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/domains?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/domains?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/domains?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/domains?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"domeinen": [
{
"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
Met behulp van dit eindpunt kan een domein worden toegevoegd. Zorg ervoor dat het domein correct naar onze server verwijst.
Parameter | Beschreibung |
---|---|
domein | (verplicht) Merkdomein inclusief http of https |
Root omleiden | (optioneel) Root-omleiding wanneer iemand uw domein bezoekt |
doorverwijzen 404 | (optioneel) Aangepaste 404-omleiding |
krul --locatie --verzoek POST 'https://urlkai.com/api/domain/add' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/domain/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/domain/add"
laadvermogen = {
"domain": "https://domain1.com",
"redirectroot": "https://rootdomain.com",
"redirect404": "https://rootdomain.com/404"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/domain/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"domain": "https:\/\/domain1.com",
"redirectroot": "https:\/\/rootdomain.com",
"redirect404": "https:\/\/rootdomain.com\/404"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 1
}
https://urlkai.com/api/domain/:id/update
Als u een merkdomein wilt bijwerken, moet u geldige gegevens in JSON verzenden via een PUT-verzoek. De gegevens moeten worden verzonden als de ruwe tekst van uw verzoek, zoals hieronder weergegeven. Het onderstaande voorbeeld toont alle parameters die u kunt verzenden, maar u bent niet verplicht om alles te verzenden (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
Root omleiden | (optioneel) Root-omleiding wanneer iemand uw domein bezoekt |
doorverwijzen 404 | (optioneel) Aangepaste 404-omleiding |
krul --locatie --verzoek PUT 'https://urlkai.com/api/domain/:id/update' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/domain/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/domain/:id/update"
laadvermogen = {
"redirectroot": "https://rootdomain-new.com",
"redirect404": "https://rootdomain-new.com/404"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage (HttpMethod.Put, "https://urlkai.com/api/domain/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"redirectroot": "https:\/\/rootdomain-new.com",
"redirect404": "https:\/\/rootdomain-new.com\/404"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Domein is bijgewerkt."
}
https://urlkai.com/api/domain/:id/delete
Als u een domein wilt verwijderen, moet u een DELETE-verzoek verzenden.
krul --locatie --verzoek DELETE 'https://urlkai.com/api/domain/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/domain/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/domain/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/domain/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Domein is succesvol verwijderd."
}
https://urlkai.com/api/pixels?limit=2&page=1
Om je pixelcodes via de API te krijgen, kun je dit eindpunt gebruiken. U kunt ook gegevens filteren (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/pixels?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/pixels?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/pixels?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/pixels?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"pixels": [
{
"id": 1,
"type": "gtmpixel",
"name": "GTM Pixel",
"tag": "GA-123456789",
"datum": "2020-11-10 18:00:00"
},
{
"id": 2,
"type": "twitterpixel",
"name": "Twitter-pixel",
"tag": "1234567",
"datum": "2020-11-10 18:10:00"
}
]
}
}
https://urlkai.com/api/pixel/add
Met behulp van dit eindpunt kan een pixel worden gemaakt. U moet het pixeltype en de tag verzenden.
Parameter | Beschreibung |
---|---|
type | (verplicht) gtmpixel | Gapixel | fbpixel | adwordspixel | linkedinpixel | Twitteren Pixel | adrollpixel | Quorapixel | Pinterest Nederland | Bing Nederland | Snapchat | Reddit | Tiktok |
naam | (verplicht) Aangepaste naam voor je pixel |
label | (verplicht) De tag voor de pixel |
krul --locatie --verzoek POST 'https://urlkai.com/api/pixel/add' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "gtmpixel",
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixel/add",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "gtmpixel",
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/pixel/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"type": "gtmpixel",
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/pixel/add"
laadvermogen = {
"type": "gtmpixel",
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/pixel/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"type": "gtmpixel",
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 1
}
https://urlkai.com/api/pixel/:id/update
Als u een pixel wilt bijwerken, moet u geldige gegevens in JSON verzenden via een PUT-verzoek. De gegevens moeten worden verzonden als de ruwe tekst van uw verzoek, zoals hieronder weergegeven. Het onderstaande voorbeeld toont alle parameters die u kunt verzenden, maar u bent niet verplicht om alles te verzenden (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
naam | (optioneel) Aangepaste naam voor je pixel |
label | (verplicht) De tag voor de pixel |
krul --locatie --verzoek PUT 'https://urlkai.com/api/pixel/:id/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/pixel/:id/update",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/pixel/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/pixel/:id/update"
laadvermogen = {
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/pixel/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"name": "Mijn GTM",
"tag": "GTM-ABCDE"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Pixel is bijgewerkt."
}
https://urlkai.com/api/pixel/:id/delete
Als u een pixel wilt verwijderen, moet u een DELETE-verzoek verzenden.
krul --locatie --verzoek DELETE 'https://urlkai.com/api/pixel/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/pixel/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/pixel/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/pixel/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Pixel is succesvol verwijderd."
}
https://urlkai.com/api/qr?limit=2&page=1
Um Ihre QR-Codes über die API abzurufen, können Sie diesen Endpunkt verwenden. Sie können Daten auch filtern (weitere Informationen finden Sie in der Tabelle).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
krul --locatie --verzoek GET 'https://urlkai.com/api/qr?limit=2&page=1' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/qr?limit=2&page=1',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/qr?limit=2&page=1"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr?limit=2&page=1");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"QRS": [
{
"id": 2,
"link": "https:\/\/urlkai.com\/qr\/a2d5e",
"scans": 0,
"name": "Google",
"datum": "2020-11-10 18:01:43"
},
{
"id": 1,
"link": "https:\/\/urlkai.com\/qr\/b9edfe",
"scans": 5,
"name": "Google Canada",
"datum": "2020-11-10 18:00:25"
}
]
}
}
https://urlkai.com/api/qr/:id
Um Details für einen einzelnen QR-Code über die API abzurufen, können Sie diesen Endpunkt verwenden.
curl --locatie --verzoek GET 'https://urlkai.com/api/qr/:id' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/qr/:id",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/qr/:id',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/qr/:id"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/qr/:id");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"Details": {
"id": 1,
"link": "https:\/\/urlkai.com\/qr\/b9edfe",
"scans": 5,
"name": "Google Canada",
"datum": "2020-11-10 18:00:25"
},
"gegevens": {
"klikken": 1,
"uniqueClicks": 1,
"topCountries": {
"Onbekend": "1"
},
"topReferrers": {
"Direct, e-mail en overige": "1"
},
"topBrowsers": {
"Chroom": "1"
},
"topOs": {
"Windows 10": "1"
},
"socialCount": {
"facebook": 0,
"Twitter": 0,
"Instagram": 0
}
}
}
https://urlkai.com/api/qr/add
Om een QR-code te maken, moet u geldige gegevens in JSON verzenden via een POST-verzoek. De gegevens moeten worden verzonden als de ruwe tekst van uw verzoek, zoals hieronder weergegeven. Het onderstaande voorbeeld toont alle parameters die u kunt verzenden, maar u bent niet verplicht om alles te verzenden (zie tabel voor meer informatie).
Parameter | Beschreibung |
---|---|
type | (verplichte) tekst | vcard | koppeling | E-mailadres | telefoon | sms | Wifi |
gegevens | (verplicht) Gegevens die in de QR-code moeten worden ingesloten. De gegevens kunnen een string of array zijn, afhankelijk van het type |
achtergrond | (optioneel) RGB-kleur, bijv. rgb (255.255.255) |
voorgrond | (optioneel) RGB-kleur, bijv. rgb(0,0,0) |
logo | (optioneel) Pad naar het logo, png of jpg |
naam | (optioneel) Naam QR-code |
krul --locatie --verzoek POST 'https://urlkai.com/api/qr/add' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR-code API"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/qr/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR-code API"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/qr/add"
laadvermogen = {
"type": "koppeling",
"gegevens": "https://google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https://site.com/logo.png",
"name": "QR-code API"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/qr/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png",
"name": "QR-code API"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"link": "https:\/\/urlkai.com\/qr\/a58f79"
}
https://urlkai.com/api/qr/:id/update
Um einen QR-Code zu aktualisieren, müssen Sie gültige Daten in JSON über eine PUT-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).
Parameter | Beschreibung |
---|---|
gegevens | (verplicht) Gegevens die in de QR-code moeten worden ingesloten. De gegevens kunnen een string of array zijn, afhankelijk van het type |
achtergrond | (optioneel) RGB-kleur, bijv. rgb (255.255.255) |
voorgrond | (optioneel) RGB-kleur, bijv. rgb(0,0,0) |
logo | (optioneel) Pad naar het logo, png of jpg |
krul --locatie --verzoek PUT 'https://urlkai.com/api/qr/:id/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/qr/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/qr/:id/update"
laadvermogen = {
"type": "koppeling",
"gegevens": "https://google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https://site.com/logo.png"
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/qr/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"type": "koppeling",
"data": "https:\/\/google.com",
"background": "rgb(255.255.255)",
"voorgrond": "rgb(0,0,0)",
"logo": "https:\/\/site.com\/logo.png"
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "QR is bijgewerkt."
}
https://urlkai.com/api/qr/:id/delete
Um einen QR-Code zu löschen, müssen Sie eine DELETE-Anfrage senden.
krul --locatie --verzoek DELETE 'https://urlkai.com/api/qr/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/qr/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/qr/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/qr/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "QR-code is succesvol verwijderd."
}
https://urlkai.com/api/urls?limit=2&page=1o=date
Um Ihre Links über die API zu erhalten, können Sie diesen Endpunkt verwenden. Sie können Daten auch filtern (weitere Informationen finden Sie in der Tabelle).
Parameter | Beschreibung |
---|---|
grens | (optioneel) Resultaat gegevens per pagina |
bladzijde | (optioneel) Huidige pagina aanvraag |
bevelen | (optioneel) Sorteer gegevens op datum of klik op |
kort | (optioneel) Zoeken met behulp van de korte url. Houd er rekening mee dat wanneer u de korte parameter gebruikt, alle andere parameters worden genegeerd en dat als er een overeenkomst is, een Single Link-antwoord wordt geretourneerd. |
q | (optioneel) Zoeken naar links met behulp van een trefwoord |
curl --locatie --verzoek GET 'https://urlkai.com/api/urls?limit=2&page=1o=date' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/urls?limit=2&page=1o=date',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/urls?limit=2&page=1o=date"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/urls?limit=2&page=1o=date");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"error": "0",
"gegevens": {
"resultaat": 2,
"perpage": 2,
"huidigepagina": 1,
"volgende pagina": 1,
"maxpage": 1,
"URL's": [
{
"id": 2,
"alias": "google",
"shorturl": "https:\/\/urlkai.com\/google",
"longurl": "https:\/\/google.com",
"klikken": 0,
"title": "Google",
"beschrijving": "",
"datum": "2020-11-10 18:01:43"
},
{
"id": 1,
"alias": "googlecanada",
"shorturl": "https:\/\/urlkai.com\/googlecanada",
"longurl": "https:\/\/google.ca",
"klikken": 0,
"title": "Google Canada",
"beschrijving": "",
"datum": "2020-11-10 18:00:25"
}
]
}
}
https://urlkai.com/api/url/:id
Um Details für einen einzelnen Link über die API abzurufen, können Sie diesen Endpunkt verwenden.
krul --locatie --verzoek GET 'https://urlkai.com/api/url/:id' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/:id",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "KRIJGEN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"method": "KRIJGEN",
'url': 'https://urlkai.com/api/url/:id',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/url/:id"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("GET", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Get, "https://urlkai.com/api/url/:id");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"id": 1,
"Details": {
"id": 1,
"shorturl": "https:\/\/urlkai.com\/googlecanada",
"longurl": "https:\/\/google.com",
"title": "Google",
"beschrijving": "",
"locatie": {
"Canada": "https:\/\/google.ca",
"Verenigde Staten": "https:\/\/google.us"
},
"apparaat": {
"iphone": "https:\/\/google.com",
"android": "https:\/\/google.com"
},
"vervaldatum": null,
"datum": "2020-11-10 18:01:43"
},
"gegevens": {
"klikken": 0,
"uniqueClicks": 0,
"topLanden": 0,
"topReferrers": 0,
"topBrowsers": 0,
"topOs": 0,
"socialCount": {
"facebook": 0,
"Twitter": 0,
"google": 0
}
}
}
https://urlkai.com/api/url/add
Um einen Link zu kürzen, müssen Sie gültige Daten in JSON über eine POST-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).
Parameter | Beschreibung |
---|---|
Naam-URL | (verplicht) Lange URL om in te korten. |
gewoonte | (optioneel) Aangepaste alias in plaats van willekeurige alias. |
type | (optioneel) Type omleiding [direct, frame, splash], alleen legitimatiebewijs voor aangepaste splash-pagina of Overlay-ID Voor CTA-pagina's |
wachtwoord | (optioneel) Wachtwoord beveiliging |
domein | (optioneel) Aangepast domein |
Verstrijken | (optioneel) Vervaldatum voor het voorbeeld van de link: 2021-09-28 23:11:16 |
Geodoel | (optioneel) Gegevens over geografische targeting |
ApparaatTarget | (optioneel) Gegevens over apparaattargeting |
LanguageTarget | (optioneel) Gegevens voor targeting op taal |
Metatitel | (optioneel) Meta-titel |
Metabeschrijving | (optioneel) Meta omschrijving |
meta-afbeelding | (optioneel) Link naar een jpg- of png-afbeelding |
beschrijving | (optioneel) Opmerking of beschrijving |
Pixels | (optioneel) Reeks pixel-id's |
kanaal | (optioneel) Kanaal-ID |
campagne | (optioneel) Campagne-ID |
Deeplink | (optioneel) Object met link naar de app store. Wanneer u dit gebruikt, is het belangrijk om ook apparaattargeting in te stellen. (Nieuw) U kunt nu de parameter "auto" op true zetten om automatisch de deeplinks van de opgegeven lange link te genereren. |
status | (optioneel) publiek of Privé (standaard) |
krul --locatie --verzoek POST 'https://urlkai.com/api/url/add' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https:\/\/google.com",
"status": "privé",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"metatitle": "Niet Google",
"metadescription": "Geen Google-beschrijving",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "Voor facebook",
"pixels": [
1,
2,
3,
4
],
"kanaal": 1,
"campagne": 1,
"deeplink": {
"auto": waar,
"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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"taal": "en",
"link": "https:\/\/google.com"
},
{
"taal": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/add",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"url": "https:\/\/google.com",
"status": "privé",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"metatitle": "Niet Google",
"metadescription": "Geen Google-beschrijving",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "Voor facebook",
"pixels": [
1,
2,
3,
4
],
"kanaal": 1,
"campagne": 1,
"deeplink": {
"auto": waar,
"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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"taal": "en",
"link": "https:\/\/google.com"
},
{
"taal": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "POST",
'url': 'https://urlkai.com/api/url/add',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"url": "https:\/\/google.com",
"status": "privé",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"metatitle": "Niet Google",
"metadescription": "Geen Google-beschrijving",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "Voor facebook",
"pixels": [
1,
2,
3,
4
],
"kanaal": 1,
"campagne": 1,
"deeplink": {
"auto": waar,
"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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"taal": "en",
"link": "https:\/\/google.com"
},
{
"taal": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/url/add"
laadvermogen = {
"url": "https://google.com",
"status": "privé",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"metatitle": "Niet Google",
"metadescription": "Geen Google-beschrijving",
"metaimage": "https://www.mozilla.org/media/protocol/img/logos/firefox/browser/og.4ad05d4125a5.png",
"description": "Voor facebook",
"pixels": [
1,
2,
3,
4
],
"kanaal": 1,
"campagne": 1,
"deeplink": {
"auto": waar,
"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≷=NL"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https://google.ca"
},
{
"location": "Verenigde Staten",
"link": "https://google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https://google.com"
},
{
"apparaat": "Android",
"link": "https://google.com"
}
],
"languagetarget": [
{
"taal": "en",
"link": "https://google.com"
},
{
"taal": "fr",
"link": "https://google.ca"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("POST", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Post, "https://urlkai.com/api/url/add");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"url": "https:\/\/google.com",
"status": "privé",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"metatitle": "Niet Google",
"metadescription": "Geen Google-beschrijving",
"metaimage": "https:\/\/www.mozilla.org\/media\/protocol\/img\/logos\/firefox\/browser\/og.4ad05d4125a5.png",
"description": "Voor facebook",
"pixels": [
1,
2,
3,
4
],
"kanaal": 1,
"campagne": 1,
"deeplink": {
"auto": waar,
"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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"languagetarget": [
{
"taal": "en",
"link": "https:\/\/google.com"
},
{
"taal": "fr",
"link": "https:\/\/google.ca"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"shorturl": "https:\/\/urlkai.com\/google"
}
https://urlkai.com/api/url/:id/update
Um einen Link zu aktualisieren, müssen Sie gültige Daten in JSON über eine PUT-Anforderung senden. Die Daten müssen wie unten gezeigt als Rohtext Ihrer Anfrage gesendet werden. Das folgende Beispiel zeigt alle Parameter, die Sie senden können, aber Sie müssen nicht alle senden (siehe Tabelle für weitere Informationen).
Parameter | Beschreibung |
---|---|
Naam-URL | (verplicht) Lange URL om in te korten. |
gewoonte | (optioneel) Aangepaste alias in plaats van willekeurige alias. |
type | (optioneel) Type omleiding [direct, frame, splash] |
wachtwoord | (optioneel) Wachtwoord beveiliging |
domein | (optioneel) Aangepast domein |
Verstrijken | (optioneel) Vervaldatum voor het voorbeeld van de link: 2021-09-28 23:11:16 |
Geodoel | (optioneel) Gegevens over geografische targeting |
ApparaatTarget | (optioneel) Gegevens over apparaattargeting |
LanguageTarget | (optioneel) Gegevens voor targeting op taal |
Metatitel | (optioneel) Meta-titel |
Metabeschrijving | (optioneel) Meta omschrijving |
meta-afbeelding | (optioneel) Link naar een jpg- of png-afbeelding |
Pixels | (optioneel) Reeks pixel-id's |
kanaal | (optioneel) Kanaal-ID |
campagne | (optioneel) Campagne-ID |
Deeplink | (optioneel) Object met link naar de app store. Wanneer u dit gebruikt, is het belangrijk om ook apparaattargeting in te stellen. |
krul --locatie --verzoek PUT 'https://urlkai.com/api/url/:id/update' \
--header 'Machtiging: Toonder YOURAPIKEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https:\/\/google.com",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"pixels": [
1,
2,
3,
4
],
"kanaal": 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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://urlkai.com/api/url/:id/update",
CURLOPT_RETURNTRANSFER => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
CURLOPT_POSTFIELDS =>
'{
"url": "https:\/\/google.com",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"pixels": [
1,
2,
3,
4
],
"kanaal": 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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}',
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
"methode": "PUT",
'url': 'https://urlkai.com/api/url/:id/update',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
body: JSON.stringify({
"url": "https:\/\/google.com",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"pixels": [
1,
2,
3,
4
],
"kanaal": 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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}),
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/url/:id/update"
laadvermogen = {
"url": "https://google.com",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"pixels": [
1,
2,
3,
4
],
"kanaal": 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≷=NL"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https://google.ca"
},
{
"location": "Verenigde Staten",
"link": "https://google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https://google.com"
},
{
"apparaat": "Android",
"link": "https://google.com"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("PUT", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Put, "https://urlkai.com/api/url/:id/update");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{
"url": "https:\/\/google.com",
"Aangepast": "Google",
"wachtwoord": "mypass",
"expiry": "2020-11-11 12:00:00",
"type": "plons",
"pixels": [
1,
2,
3,
4
],
"kanaal": 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"
},
"geodoelwit": [
{
"location": "Canada",
"link": "https:\/\/google.ca"
},
{
"location": "Verenigde Staten",
"link": "https:\/\/google.us"
}
],
"devicetarget": [
{
"apparaat": "iPhone",
"link": "https:\/\/google.com"
},
{
"apparaat": "Android",
"link": "https:\/\/google.com"
}
],
"parameters": [
{
"naam": "aff",
"waarde": "3"
},
{
"apparaat": "gtm_source",
"link": "API"
}
]
}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"identiteitskaart": 3,
"short": "https:\/\/urlkai.com\/google"
}
https://urlkai.com/api/url/:id/delete
Um einen Link zu löschen, müssen Sie eine DELETE-Anfrage senden.
krul --locatie --verzoek DELETE 'https://urlkai.com/api/url/:id/delete' \
--header 'Machtiging: Toonder 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 => waar,
CURLOPT_MAXREDIRS => 2,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => waar,
CURLOPT_CUSTOMREQUEST => "VERWIJDEREN",
CURLOPT_HTTPHEADER => [
"Machtiging: Toonder YOURAPIKEY",
"Inhoud-Type: applicatie/json",
],
));
$response = curl_exec($curl);
curl_close, lid $curl);
echo $response;
var request = require('verzoek');
var opties = {
'method': 'VERWIJDEREN',
'url': 'https://urlkai.com/api/url/:id/delete',
'koppen': {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
},
};
request(opties, functie (fout, antwoord) {
als (fout) nieuwe Fout (fout) gooit;
console.log(reactie.lichaam);
});
Import aanvragen
url = "https://urlkai.com/api/url/:id/delete"
laadvermogen = {}
koppen = {
"Machtiging": "Toonder YOURAPIKEY",
'Content-Type': 'applicatie/json'
}
response = requests.request("DELETE", url, headers=headers, json=payload)
print(response.text)
var client = nieuwe HttpClient();
var request = nieuw HttpRequestMessage(HttpMethod.Delete, "https://urlkai.com/api/url/:id/delete");
verzoek. Headers.Add("Autorisatie", "Toonder YOURAPIKEY");
var content = nieuwe StringContent("{}", System.Text.Encoding.UTF8, "application/json");
verzoek. Inhoud = inhoud;
var response = wachten op client. SendAsync(verzoek);
antwoord. EnsureSuccessStatusCode();
Console.WriteLine(wacht op antwoord. Inhoud.ReadAsStringAsync());
{
"fout": 0,
"message": "Link is succesvol verwijderd"
}