Configuration
The system is controlled by a single JSON file: content.json.
Structure Overview
The file contains a clients array. Each client object defines the platform, credentials, and a list of posts to publish.
content.json
{
"clients": [
{
"client_id": "client_a",
"platform": "wordpress",
"config": { ... },
"posts": [ ... ]
},
{
"client_id": "client_b",
"platform": "shopify",
"config": { ... },
"posts": [ ... ]
}
]
}Post Object Fields
| Field | Type | Required |
|---|---|---|
| title | String | Yes |
| content_html | String | Yes |
| status | String | No (default: publish) |
| publish_date | ISO Date | No |
| tags | Array | No |
| categories | Array | No |
| featured_image_url | URL String | No |
Full Example
{
"clients": [
{
"client_id": "tech_blog",
"platform": "wordpress",
"config": {
"site_url": "https://techblog.com",
"username": "admin",
"application_password": "xxxx-xxxx-xxxx-xxxx"
},
"posts": [
{
"title": "The Future of AI",
"content_html": "<h1>AI is changing everything...</h1>",
"tags": ["AI", "Tech"],
"categories": ["Opinion"],
"featured_image_url": "https://example.com/image.jpg",
"status": "draft"
}
]
}
]
}