Konu Ekleme
Yeni bir konu oluşturmak için bu endpoint'i kullanabilirsiniz.
📋 Endpoint Bilgileri
- URL:
/api/v1/konular/konu-ekle - Method:
POST - Content-Type:
application/json - Authentication: Bearer Token gerekli
📝 Request
Body Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
konu | string | ✅ | Konu adı |
limit | integer | ✅ | Makale limiti |
Request Example
{
"konu": "Web Geliştirme",
"limit": 50
}
💻 Kod Örneği
async function addTopic(accessToken, topicName, limit) {
const response = await fetch(
"https://integration.seoauthor.ai/api/v1/konular/konu-ekle",
{
method: "POST",
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
konu: topicName,
limit: limit,
}),
}
);
return response.json();
}
// Kullanım
addTopic("token", "Mobil Uygulama Geliştirme", 30);