Hatırlatıcı ve Görevler
Kişisel hatırlatıcıları ve ekibin görev planlayıcısını yöneten on uç.
Genel Bakış
Bu on uç iki ayrı defteri yönetir. Hatırlatıcı kişiseldir: kendinize not bırakırsınız, zamanı gelince size hatırlatılır. Görev paylaşılandır: bir yöneticiye atanır, bir müşteriye ve departmana bağlanabilir, durumu takip edilir.
Aradaki en önemli fark görünürlüktür. Hatırlatıcılar sahibine bağlıdır ve anahtarın ait olduğu yönetici dışındakiler görünmez; görevler ise ekip geneli listedir.
Referans
Hatırlatıcıları Listeleme
Anahtarın bağlı olduğu yöneticinin hatırlatıcılarını döndürür.
active ya da inactive.onetime bir kez, recurring tekrarlayan.curl 'https://panel.ornek.com/api/v1/admin/tools/reminders' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/reminders', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/reminders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Hatirlaticilar SAHIBINE baglidir: baska bir yoneticininkileri bu anahtarla goremezsiniz.
$reminders = Api::Tools()->GetReminders()['data'];Hatırlatıcı Detayı
Tek bir hatırlatıcıyı döndürür. Şema liste öğesiyle aynıdır.
active ya da inactive.onetime bir kez, recurring tekrarlayan.curl 'https://panel.ornek.com/api/v1/admin/tools/reminders/12' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/reminders/12', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/reminders/12');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Baskasinin hatirlaticisi 'bulunamadi' doner, 'yetkin yok' degil.
$response = Api::Tools()->GetReminder(['id' => 12]);Hatırlatıcı Oluşturma
Anahtarın sahibine yeni bir hatırlatıcı açar.
active ya da inactive. Varsayılan etkin.onetime ya da recurring. Varsayılan tek seferlik.curl -X POST 'https://panel.ornek.com/api/v1/admin/tools/reminders' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"note":"Follow up with client","period":"onetime","scheduled_at":"2026-02-01 09:00:00"}'const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/reminders', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
note: 'Follow up with client',
period: 'onetime',
scheduled_at: '2026-02-01 09:00:00',
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/reminders');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'note' => 'Follow up with client',
'period' => 'onetime',
'scheduled_at' => '2026-02-01 09:00:00',
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Her ayin ilk gunu icin: gun 1, ay -1 (her ay).
Api::Tools()->CreateReminder([
'note' => 'Monthly reconciliation',
'period' => 'recurring',
'time' => '09:00',
'month' => -1,
'day' => 1,
]);Hatırlatıcıyı Güncelleme
Gönderdiğiniz alanları uygular; kalanlar olduğu gibi durur.
active ya da inactive. Varsayılan etkin.onetime ya da recurring. Varsayılan tek seferlik.curl -X PATCH 'https://panel.ornek.com/api/v1/admin/tools/reminders/12' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"status":"inactive"}'const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/reminders/12', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ status: 'inactive' }),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/reminders/12');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['status' => 'inactive']),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Durumu kapatmak hatirlaticiyi SILMEZ: kayit durur, yalniz calismaz.
Api::Tools()->UpdateReminder(['id' => 12, 'status' => 'inactive']);Hatırlatıcıyı Silme
Hatırlatıcıyı siler.
curl -X DELETE 'https://panel.ornek.com/api/v1/admin/tools/reminders/12' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/reminders/12', {
method: 'DELETE',
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/reminders/12');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Tools()->DeleteReminder(['id' => 12]);Görevleri Listeleme
Görev planlayıcıdaki kayıtları döndürür. Hatırlatıcıların aksine hepsi görünür.
waiting, inprocess, postponed ya da completed.curl 'https://panel.ornek.com/api/v1/admin/tools/tasks' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/tasks', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/tasks');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Gorevler hatirlaticilarin aksine SAHIBINE bagli degildir: liste herkesinkini tasir.
$mine = array_filter(
Api::Tools()->GetTasks()['data'],
fn (array $t): bool => $t['admin_id'] === $adminId,
);Görev Detayı
Tek bir görevi döndürür. Şema liste öğesiyle aynıdır.
waiting, inprocess, postponed ya da completed.curl 'https://panel.ornek.com/api/v1/admin/tools/tasks/8' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/tasks/8', {
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/tasks/8');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);$response = Api::Tools()->GetTask(['id' => 8]);Görev Oluşturma
Yeni bir görev açar ve bir yöneticiye atar.
curl -X POST 'https://panel.ornek.com/api/v1/admin/tools/tasks' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"title":"Renew SSL","c_date":"2026-02-01","user_id":42,"notify":true}'const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/tasks', {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'Renew SSL',
c_date: '2026-02-01',
user_id: 42,
notify: true,
}),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/tasks');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Renew SSL',
'c_date' => '2026-02-01',
'user_id' => 42,
'notify' => true,
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Atanan yonetici verilmezse gorev ANAHTARIN SAHIBINE dusur; entegrasyon anahtarinda dikkat.
Api::Tools()->CreateTask([
'title' => 'Renew SSL',
'c_date' => '2026-02-01',
'admin_id' => 3,
'notify' => true,
]);Görevi Güncelleme
Gönderdiğiniz alanları uygular; başlık ve tarih boş bırakılamaz.
curl -X PATCH 'https://panel.ornek.com/api/v1/admin/tools/tasks/8' \
-H "Authorization: Bearer $API_KEY" \
-H 'Content-Type: application/json' \
-d '{"status":"completed","status_note":"Done"}'const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/tasks/8', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ status: 'completed', status_note: 'Done' }),
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/tasks/8');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'status' => 'completed',
'status_note' => 'Done',
]),
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Tamamlanan gorev listeden CIKMAZ; kendi taraf sorgunuzda duruma gore eleyin.
Api::Tools()->UpdateTask([
'id' => 8,
'status' => 'completed',
]);Görevi Silme
Görevi siler.
curl -X DELETE 'https://panel.ornek.com/api/v1/admin/tools/tasks/8' \
-H "Authorization: Bearer $API_KEY"const res = await fetch('https://panel.ornek.com/api/v1/admin/tools/tasks/8', {
method: 'DELETE',
headers: { Authorization: `Bearer ${apiKey}` },
});
const body = await res.json();$ch = curl_init('https://panel.ornek.com/api/v1/admin/tools/tasks/8');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey],
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);// Silme SAHIBE bakmaz: baska bir yoneticinin gorevini de kaldirabilirsiniz.
Api::Tools()->DeleteTask(['id' => 8]);Tuzaklar
Hatırlatıcı uçları yalnız anahtarın sahibi olan yöneticinin kayıtlarını görür; başkasının hatırlatıcısı "bulunamadı" döner. Görev uçlarında böyle bir sınır yoktur: liste herkesinkini taşır ve silme sahibe bakmaz. Bir entegrasyon anahtarının başka bir yöneticinin görevini kaldırabileceğini hesaba katın.
Görev oluştururken atanan yönetici vermezseniz görev anahtarın sahibine atanır. Bir entegrasyon anahtarı kullanıyorsanız bu, gerçekte kimsenin bakmadığı bir hesabın üzerine görev yığmak demektir. Atamayı açıkça verin.
Tür tek seferlik olduğunda zaman alanı zorunludur; vermezseniz istek reddedilir. Tekrarlayan hatırlatıcıda ise saat, ay ve gün deseninden okunur ve eksi bir "her" anlamına gelir: ay eksi bir, gün bir demek her ayın ilk günü demektir.
Görevi tamamlandı olarak işaretlemek onu listeden kaldırmaz; kayıt durumuyla birlikte kalır. Açık işleri saymak istiyorsanız kendi tarafınızda duruma göre elemeniz gerekir.
İlgili Makaleler
Geri bildiriminiz için teşekkürler!
Yukarıda bulamadığınız her şey için destek ekibimiz her zaman yanınızda.