E-Posta Taslağı Güncelleme
E-Posta Taslağı Güncelleme, Evobulut ön muhasebe / ERP yazılımının Aktivite modülüne ait bir REST API servisidir. POST yöntemiyle https://ws.evobulut.com/api/Aktivite/base/ adresine JSON gönderilerek çağrılır; kimlik doğrulama için Login servisinden alınan Token UID değeri gereklidir.
Açıklama
E-Posta Taslağı Oluşturma ile açılan taslağı günceller; e-posta göndermez. Yalnız verilen alanlar değişir. Gövde verilirse imza yeniden eklenir (imza: 0 ile eklenmez).
Yalnız çağıranın açtığı ya da sahibi olduğu, hâlâ taslak olan e-posta güncellenir. Sahibi taslağı Posta Kutusu'nda düzenlediyse ya da ek yüklediyse servis reddeder; elle yapılan değişiklik ezilmez.
| cmd | taslak_upd |
| UID | KULLANICI_UID |
| Ana[0].a_id | Taslak kimliği (zorunlu) |
| Ana[0].a_kime, a_cc, a_bcc, a_konu, a_icerik, a_icerik_html, a_mail, a_gonderen_mail, a_rehber_id, imza | E-Posta Taslağı Oluşturma ile aynı anlamda; verilmeyen alan değişmez |
Header Bilgileri
| X-ClientId | Login anında alınan kullanıcı Token UID bilgisi |
İstek Gövdesi (JSON)
{
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
} Kod Örnekleri
curl -X POST "https://ws.evobulut.com/api/Aktivite/base/" \
-H "Content-Type: application/json" \
-d '{
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}'const response = await fetch("https://ws.evobulut.com/api/Aktivite/base/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
})
});
const veri = await response.json();
console.log(veri);using System.Text;
using System.Text.Json;
using var client = new HttpClient();
var json = """
{
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}
""";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://ws.evobulut.com/api/Aktivite/base/", content);
var veri = await response.Content.ReadAsStringAsync();
Console.WriteLine(veri);import requests
url = "https://ws.evobulut.com/api/Aktivite/base/"
payload = {
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}
response = requests.post(url, json=payload)
print(response.json())<?php
$url = "https://ws.evobulut.com/api/Aktivite/base/";
$payload = '{
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
String json = """
{
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://ws.evobulut.com/api/Aktivite/base/"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://ws.evobulut.com/api/Aktivite/base/'),
headers: {'Content-Type': 'application/json'},
body: jsonEncode({
"cmd": "taslak_upd",
"UID": "KULLANICI_UID",
"Ana": [
{
"a_id": 482113,
"a_konu": "İşbirliği önerisi (hatırlatma)"
}
]
}),
);
print(jsonDecode(response.body)); Başarılı Yanıt
200 OK
{
"status": "OK",
"veri": [
{
"ID": 482113,
"mevcut": 0,
"sahip_user_id": 51,
"mesaj": "Taslak güncellendi; e-posta gönderilmedi.",
"a_mail": 12,
"a_gonderen_mail": "[email protected]"
}
]
} Başarısız Yanıt
200 OK — status: ERR
{
"status": "ERR",
"veri": [
{
"mesaj": "Taslak sahibi tarafından Posta Kutusu'nda düzenlenmiş; API ile değiştirilmez."
}
]
} Aktivite modülündeki diğer servisler