定制 carbon/mautic-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.com with 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固