Skip to content

Mautic credentials#

คุณสามารถใช้ credentials เหล่านี้เพื่อยืนยันตัวตนใน nodes ต่อไปนี้:

Supported authentication methods#

  • Basic auth
  • OAuth2

อ้างอิง Mautic's API documentation สำหรับข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้

Using basic auth#

API enabled

ในการตั้งค่า credential นี้ instance Mautic ของคุณต้องเปิดใช้งาน API อ้างอิง Enable the API สำหรับคำแนะนำ

ในการกำหนดค่า credential นี้ คุณจะต้องมีบัญชีบน instance ของ Mautic และ:

  • URL ของคุณ
  • Username
  • Password

วิธีตั้งค่า:

  1. ใน Mautic ไปที่ Configuration > API Settings
  2. หาก Enable HTTP basic auth? ตั้งค่าเป็น No ให้เปลี่ยนเป็น Yes และบันทึก อ้างอิงเอกสาร API Settings documentation สำหรับข้อมูลเพิ่มเติม
  3. ใน n8n ป้อน Base URL ของ instance Mautic ของคุณ
  4. ป้อน Username ของ Mautic ของคุณ
  5. ป้อน Password ของ Mautic ของคุณ

Using OAuth2#

API enabled

ในการตั้งค่า credential นี้ instance Mautic ของคุณต้องเปิดใช้งาน API อ้างอิง Enable the API สำหรับคำแนะนำ

ในการกำหนดค่า credential นี้ คุณจะต้องมีบัญชีบน instance ของ Mautic และ:

  • Client ID: สร้างขึ้นเมื่อคุณสร้าง API credentials ใหม่
  • Client Secret: สร้างขึ้นเมื่อคุณสร้าง API credentials ใหม่
  • URL ของคุณ

วิธีตั้งค่า:

  1. ใน Mautic ไปที่ Configuration > Settings
  2. เลือก API Credentials

    No API Credentials menu

    หากคุณไม่เห็นตัวเลือก API Credentials ใต้ Configuration > Settings ตรวจสอบให้แน่ใจว่าได้ Enable the API หากคุณเปิดใช้งาน API แล้วและยังไม่เห็นตัวเลือก ให้ลอง ล้างแคชด้วยตนเอง

  3. เลือกตัวเลือก Create new client

  4. เลือก OAuth 2 เป็น Authorization Protocol
  5. ป้อน Name สำหรับ credential ของคุณ เช่น n8n integration
  6. ใน n8n คัดลอก OAuth Callback URL และป้อนเป็น Redirect URI ใน Mautic
  7. เลือก Apply
  8. คัดลอก Client ID จาก Mautic และป้อนลงใน credential ของ n8n
  9. คัดลอก Client Secret จาก Mautic และป้อนลงใน credential ของ n8n
  10. ป้อน Base URL ของ instance Mautic ของคุณ

อ้างอิง What is Mautic's API? สำหรับข้อมูลเพิ่มเติม

Enable the API#

วิธีเปิดใช้งาน API ใน instance Mautic ของคุณ:

  1. ไปที่ Settings > Configuration
  2. เลือก API Settings
  3. ตั้งค่า API enabled? เป็น Yes
  4. Save การเปลี่ยนแปลงของคุณ

อ้างอิง How to use the Mautic API สำหรับข้อมูลเพิ่มเติม