EasyDonateDocs V2
ข้อมูลแพลนกลับสู่เว็บไซต์♥️ to writer!
คู่มือการใช้งานนักพัฒนา
EasyDonateDocs V2
ข้อมูลแพลนกลับสู่เว็บไซต์♥️ to writer!

เริ่มต้น

EasyDonate Developer PlatformQuickstart

พื้นฐาน

AuthenticationScopesRate limits

คู่มือ

Inbound Donations APIOAuthMCP Server (เชื่อมต่อ AI)

Quickstart

View as MarkdownView this page as plain textOpenAIOpen in ChatGPTAsk questions about this pageAnthropicOpen in ClaudeAsk questions about this pagePerplexityOpen in PerplexityAsk questions about this page

คู่มือนี้พาคุณยิง request แรกไปยัง EasyDonate API ภายในประมาณ 5 นาที

1. สร้าง API key

ไปที่ หน้าจัดการโซนผู้พัฒนาAPI Keys สร้าง key ใหม่ แล้วเลือก scope ที่ต้องการ (ดูรายละเอียดที่หน้า Scopes)

API key แสดงให้เห็นครั้งเดียวตอนสร้าง - เก็บไว้ในที่ปลอดภัย และอย่า commit ลง repository

ตั้ง token ครั้งเดียว ใช้ได้ทุก playground

วาง API key (ezdn_v1_) หรือ access token แล้วทุก playground ในเว็บจะยิง request ด้วย token นี้ เอา key ได้จาก หน้าจัดการโซนผู้พัฒนาAPI Keys

2. เรียกดูข้อมูลบัญชีของคุณ

GET
/api/v1/me
curl -X GET "https://example.com/api/v1/me"
Empty

3. ดูรายการโดเนทล่าสุด

(ต้องมี scope read:donations)

GET
/api/v1/donations
curl -X GET "https://example.com/api/v1/donations"
Empty

4. ควบคุมวิดเจ็ต timer

(ต้องมี scope write:timer)

POST
/api/v1/widgets/timer/control
curl -X POST "https://example.com/api/v1/widgets/timer/control" \  -H "Content-Type: application/json" \  -d '{    "action": "play"  }'
Empty

Response envelope

ทุก response ใช้ envelope มาตรฐานเดียวกัน:

{ "statusCode": 200, "data": {} }

ขั้นถัดไป

  • Authentication - token 2 ประเภทและการใช้งาน
  • Inbound Donations API - ส่ง event โดเนทขึ้นจอไลฟ์
  • OAuth - ทำงานแทนผู้ใช้ EasyDonate คนอื่น
  • API Reference - endpoint ทั้งหมดพร้อมตัวอย่าง

EasyDonate Developer Platform

API และเครื่องมือสำหรับนักพัฒนา - อ่านข้อมูลบัญชี ส่ง event โดเนท ควบคุมวิดเจ็ต และทำงานแทนผู้ใช้ผ่าน OAuth

Authentication

Token 2 ประเภทของ EasyDonate API - API key ส่วนตัวและ OAuth access token

ในหน้านี้

1. สร้าง API key2. เรียกดูข้อมูลบัญชีของคุณ3. ดูรายการโดเนทล่าสุด4. ควบคุมวิดเจ็ต timerResponse envelopeขั้นถัดไป