Airtable credentials#
คุณสามารถใช้ credentials นี้เพื่อเชื่อมต่อกับ node เหล่านี้:
Prerequisites#
สมัคร Airtable ให้เรียบร้อยก่อน
Supported authentication methods#
- Personal Access Token (PAT)
- OAuth2
API Key deprecation
n8n เคยมีวิธีการยืนยันตัวตนด้วย API key กับ Airtable Airtable ยกเลิกการใช้งาน keys เหล่านี้อย่างสมบูรณ์ ณ เดือนกุมภาพันธ์ 2024 หากคุณเคยใช้ Airtable API credential ให้แทนที่ด้วย Airtable Personal Access Token หรือ Airtable OAuth2 credential n8n แนะนำให้ใช้ Personal Access Token แทน
Related resources#
ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการได้ที่ Airtable's API documentation
Using personal access token#
ถ้าจะตั้งค่า credentials นี้ คุณต้องมี:
- Personal Access Token (PAT)
วิธีสร้าง PAT ของคุณ:
- ไปที่หน้า Airtable Builder Hub Personal access tokens
- เลือก + Create new token Airtable จะเปิดหน้า Create personal access token
- ป้อน Name สำหรับ token ของคุณ เช่น
n8n credential
- เพิ่ม Scopes ให้กับ token ของคุณ ดูข้อมูลเพิ่มเติมได้ที่คู่มือ Scopes ของ Airtable n8n แนะนำให้ใช้ scopes เหล่านี้:
data.records:read
data.records:write
schema.bases:read
- เลือก Access สำหรับ token ของคุณ เลือกจาก base เดียว, หลาย bases (แม้กระทั่ง bases จาก workspaces ที่แตกต่างกัน), bases ทั้งหมดในปัจจุบันและอนาคตใน workspace ที่คุณเป็นเจ้าของ หรือ bases ทั้งหมดจาก workspace ใดๆ ที่คุณเป็นเจ้าของ รวมถึง bases/workspace ที่เพิ่มเข้ามาในอนาคต
- เลือก Create token
- Airtable จะเปิด modal พร้อม token ของคุณที่แสดงอยู่ คัดลอก token นี้และป้อนลงใน n8n credential ของคุณเป็น Access Token
ดูข้อมูลเพิ่มเติมได้ที่ Find/create PATs documentation ของ Airtable
Using OAuth2#
ถ้าจะตั้งค่า credentials นี้ คุณต้องมี:
- OAuth Redirect URL
- Client ID
- Client Secret
หากต้องการสร้างข้อมูลทั้งหมดนี้ ให้ลงทะเบียน Airtable integration ใหม่:
- เปิดหน้า Airtable Builder Hub OAuth integrations ของคุณ
- เลือกปุ่ม Register new OAuth integration
- ป้อนชื่อสำหรับ OAuth integration ของคุณ
- คัดลอก OAuth Redirect URL จาก n8n credential ของคุณ
- วาง redirect URL นั้นใน Airtable เป็น OAuth redirect URL
- เลือก Register integration
- ในหน้าถัดไป คัดลอก Client ID จาก Airtable และวางลงใน Client ID ใน n8n credential ของคุณ
- ใน Airtable เลือก Generate client secret
- คัดลอก client secret และวางลงใน Client Secret ใน n8n credential ของคุณ
- เลือก scopes ต่อไปนี้ใน Airtable:
data.records:read
data.records:write
schema.bases:read
- เลือก Save changes ใน Airtable
- ใน n8n credential ของคุณ เลือก Connect my account modal Grant access จะเปิดขึ้น
- ทำตามคำแนะนำและเลือก base ที่คุณต้องการทำงาน (หรือ bases ทั้งหมด)
- เลือก Grant access เพื่อทำการเชื่อมต่อให้เสร็จสิ้น
ดูขั้นตอนเกี่ยวกับการลงทะเบียน Oauth integration ใหม่ได้ที่ Airtable Register a new integration documentation