Mautic credentials#
คุณสามารถใช้ credentials เหล่านี้เพื่อยืนยันตัวตนใน nodes ต่อไปนี้:
Supported authentication methods#
- Basic auth
- OAuth2
Related resources#
อ้างอิง Mautic's API documentation สำหรับข้อมูลเพิ่มเติมเกี่ยวกับบริการนี้
Using basic auth#
API enabled
ในการตั้งค่า credential นี้ instance Mautic ของคุณต้องเปิดใช้งาน API อ้างอิง Enable the API สำหรับคำแนะนำ
ในการกำหนดค่า credential นี้ คุณจะต้องมีบัญชีบน instance ของ Mautic และ:
- URL ของคุณ
- Username
- Password
วิธีตั้งค่า:
- ใน Mautic ไปที่ Configuration > API Settings
- หาก Enable HTTP basic auth? ตั้งค่าเป็น No ให้เปลี่ยนเป็น Yes และบันทึก อ้างอิงเอกสาร API Settings documentation สำหรับข้อมูลเพิ่มเติม
- ใน n8n ป้อน Base URL ของ instance Mautic ของคุณ
- ป้อน Username ของ Mautic ของคุณ
- ป้อน 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 ของคุณ
วิธีตั้งค่า:
- ใน Mautic ไปที่ Configuration > Settings
-
เลือก API Credentials
No API Credentials menu
หากคุณไม่เห็นตัวเลือก API Credentials ใต้ Configuration > Settings ตรวจสอบให้แน่ใจว่าได้ Enable the API หากคุณเปิดใช้งาน API แล้วและยังไม่เห็นตัวเลือก ให้ลอง ล้างแคชด้วยตนเอง
-
เลือกตัวเลือก Create new client
- เลือก OAuth 2 เป็น Authorization Protocol
- ป้อน Name สำหรับ credential ของคุณ เช่น
n8n integration
- ใน n8n คัดลอก OAuth Callback URL และป้อนเป็น Redirect URI ใน Mautic
- เลือก Apply
- คัดลอก Client ID จาก Mautic และป้อนลงใน credential ของ n8n
- คัดลอก Client Secret จาก Mautic และป้อนลงใน credential ของ n8n
- ป้อน Base URL ของ instance Mautic ของคุณ
อ้างอิง What is Mautic's API? สำหรับข้อมูลเพิ่มเติม
Enable the API#
วิธีเปิดใช้งาน API ใน instance Mautic ของคุณ:
- ไปที่ Settings > Configuration
- เลือก API Settings
- ตั้งค่า API enabled? เป็น Yes
- Save การเปลี่ยนแปลงของคุณ
อ้างอิง How to use the Mautic API สำหรับข้อมูลเพิ่มเติม