Get a List of Publishers
curl --request GET \
--url https://api.hakumedia.ai/v2/publishers \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/publishers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/publishers"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/publishers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/publishers",
"data": [
{
"can_admin_account": false,
"can_approve_ads": false,
"can_change_password": false,
"can_view_wordpress_key": false,
"default_payout": {
"type": "percent",
"cpm": 3,
"cpc": 7.7,
"cpa": 9.23
},
"default_payout_percent": 5.5,
"email": "publisher@example.com",
"name": "Example Publisher",
"domain": "publisher.com",
"seller_type": "intermediary",
"metadata": {
"btf": "true",
"mobile_only": "false"
},
"object": "publisher",
"id": 4843,
"self": "/v2/publishers/4843"
}
]
}Publishers
Get a List of Publishers
Returns a list of publishers. If no publishers were found, the data object will be empty. You can use the fields query parameter to restrict the fields to be retrieved.
GET
/
publishers
Get a List of Publishers
curl --request GET \
--url https://api.hakumedia.ai/v2/publishers \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/publishers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/publishers"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/publishers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/publishers",
"data": [
{
"can_admin_account": false,
"can_approve_ads": false,
"can_change_password": false,
"can_view_wordpress_key": false,
"default_payout": {
"type": "percent",
"cpm": 3,
"cpc": 7.7,
"cpa": 9.23
},
"default_payout_percent": 5.5,
"email": "publisher@example.com",
"name": "Example Publisher",
"domain": "publisher.com",
"seller_type": "intermediary",
"metadata": {
"btf": "true",
"mobile_only": "false"
},
"object": "publisher",
"id": 4843,
"self": "/v2/publishers/4843"
}
]
}Autorizaciones
Parámetros de consulta
Respuesta
default - application/json
successful operation