Automatically transfer the high-quality content you produce with Pushnom's AI-powered content creation feature to your own platform. Here is a step-by-step guide on how you can integrate using webhooks:
Pushnom creates original, SEO-friendly content based on the criteria you define.
The generated content is sent to your system in JSON format via your webhook URL.
Your system receives this data and automatically publishes the content on your website.
A request is sent to https://your-api-endpoint.com/webhook using the POST method.
{
"title": "İçerik Başlığı",
"content": "HTML formatında içerik",
"meta_description": "SEO meta açıklaması",
"keywords": ["anahtar", "kelimeler"],
"language": "tr",
"created_at": "2024-03-21T10:00:00Z"
}
{
"status": "success",
"content_url": "https://your-site.com/post-url",
"message": "İçerik başarıyla oluşturuldu"
}
Using a Webhook Test Tool is extremely important to make sure your webhook integration works properly. These tools let you enter your webhook URL and check whether your system processes incoming requests correctly.
Error Detection: Helps you quickly detect and resolve errors that may occur in your integration.
Validation: Checks whether the webhook sends the correct data in the correct format.
Automation: Saves you time by automating your testing processes.
Only share this URL with sources you trust.
Verify the source of each request using a secret key that accompanies it.
Set request limits to prevent overload.
Conduct all communication over the HTTPS protocol.
const express = require('express');
const app = express();
app.post('/webhook', express.json(), (req, res) => {
const { title, content, meta_description } = req.body;
// İçeriği veritabanınıza veya CMS'nize kaydedin
// Örneğin, WordPress'e bir gönderi oluşturmak için WP-API kullanabilirsiniz.
res.json({
status: 'success',
content_url: 'https://your-site.com/new-post',
message: 'İçerik başarıyla oluşturuldu'
});
});
<?php
$data = json_decode(file_get_contents('php://input'), true);
$title = $data['title'];
$content = $data['content'];
$meta_description = $data['meta_description'];
// İçeriği sisteminize kaydedin
header('Content-Type: application/json');
echo json_encode([
'status' => 'success',
'content_url' => 'https://your-site.com/new-post',
'message' => 'İçerik başarıyla oluşturuldu'
]);