carbon/mautic-bundle
Composer 安装命令:
composer require carbon/mautic-bundle
包简介
Extend Mautic for usage with Carbon.Mautic in Neos CMS
README 文档
README
Extend Mautic for usage with Carbon.Mautic in Neos CMS
API Endpoints
Here a short overview of the API endpoints available in the Mautic Carbon Bundle.
1. Ping Endpoint
- Path:
/api/ping - Method:
GET - Description: This endpoint is used to check the availability of the API. It returns a simple JSON response with a "ping" message.
1.1 Example Request
GET /api/ping HTTP/1.1 Host: your-mautic-instance.com
1.2 Example Response
{
"success": 1,
"ping": "pong"
}
2. Send Example Email
- Path:
/api/emails/{id}/example - Method:
POST - Description: This endpoint sends example emails to specified recipients. The email ID must be provided in the path.
2.1 Example Request
POST /api/emails/123/example HTTP/1.1 Host: your-mautic-instance.com Content-Type: application/json { "recipients": ["example@example.com"], "previewForContactId": 1 }
2.2 Example Response
{
"success": 1,
"recipients": ["example@example.com"]
}
3. Update Email Settings
- Path:
/api/emails/{id}/settings - Method:
POST - Description: This endpoint updates the settings for a specific email. The email ID must be provided in the path.
3.1 Example Request
POST /api/emails/123/settings HTTP/1.1 Host: your-mautic-instance.com Content-Type: application/json { "settingKey": "settingValue" }
3.2 Example Response
{
"success": 1,
"settings": {
"settingKey": "settingValue"
}
}
4. Get Email Settings
- Path:
/api/emails/{id}/settings - Method:
GET - Description: This endpoint retrieves the settings for a specific email. The email ID must be provided in the path.
4.1 Example Request
GET /api/emails/123/settings HTTP/1.1 Host: your-mautic-instance.com
4.2 Example Response
{
"success": 1,
"settings": {
"settingKey": "settingValue"
}
}
Notes
- Add the API credentials to every request.
- Replace
your-mautic-instance.comwith the actual domain of your Mautic instance. - Ensure that the email ID provided in the path is valid and exists in your Mautic instance.
统计信息
- 总下载量: 809
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2025-09-01