Kampanyaları listele
curl --request GET \
--url https://api.example.com/user/campaignsimport requests
url = "https://api.example.com/user/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/user/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/campaigns"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Test campaing",
"status": "draft",
"max_calls_in_parallel": 3,
"mark_complete_when_no_leads": true,
"allowed_hours_start_time": "00:00:00",
"allowed_hours_end_time": "23:59:00",
"allowed_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
],
"max_retries": 3,
"retry_interval": 60,
"created_at": "2025-05-29T07:18:34.000000Z",
"updated_at": "2025-05-29T07:18:34.000000Z"
}
]
Kampanyalar
Kampanyaları listele
Tüm kampanyaları listeleyin
GET
/
user
/
campaigns
Kampanyaları listele
curl --request GET \
--url https://api.example.com/user/campaignsimport requests
url = "https://api.example.com/user/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/user/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/user/campaigns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/user/campaigns"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/user/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/user/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": 1,
"name": "Test campaing",
"status": "draft",
"max_calls_in_parallel": 3,
"mark_complete_when_no_leads": true,
"allowed_hours_start_time": "00:00:00",
"allowed_hours_end_time": "23:59:00",
"allowed_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
],
"max_retries": 3,
"retry_interval": 60,
"created_at": "2025-05-29T07:18:34.000000Z",
"updated_at": "2025-05-29T07:18:34.000000Z"
}
]
Bu endpoint, tüm kampanyaları listelemenizi sağlar.
Yanıt alanları
array
Göster özellikler
Göster özellikler
integer
Kampanyanın kimliği
string
Kampanyanın adı
string
Kampanyanın durumu
integer
Paralel olarak yapılabilecek maksimum arama sayısı
boolean
Müşteri kalmadığında kampanyayı tamamlandı olarak işaretleyip işaretlemeyeceği
string
İzin verilen arama saatlerinin başlangıç zamanı
string
İzin verilen arama saatlerinin bitiş zamanı
array
Aramaların yapılmasına izin verilen haftanın günleri
integer
Başarısız aramalar için maksimum yeniden deneme sayısı
integer
Yeniden denemeler arasındaki saniye cinsinden süre
string
Kampanyanın oluşturulma zaman damgası
string
Kampanyanın son güncellenme zaman damgası
[
{
"id": 1,
"name": "Test campaing",
"status": "draft",
"max_calls_in_parallel": 3,
"mark_complete_when_no_leads": true,
"allowed_hours_start_time": "00:00:00",
"allowed_hours_end_time": "23:59:00",
"allowed_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday"
],
"max_retries": 3,
"retry_interval": 60,
"created_at": "2025-05-29T07:18:34.000000Z",
"updated_at": "2025-05-29T07:18:34.000000Z"
}
]
⌘I

