Quickstart
Overview

Quickstart

เริ่ม API call แรกของคุณได้ภายใน 10 นาที

สร้างบัญชี Pcampus

สมัครที่ console.pcampus.co (opens in a new tab) คุณจะต้องมีองค์กร — สร้างได้ระหว่าง onboarding หรือจาก Settings → Organizations

ลงทะเบียน application

ใน Console ไปที่ Applications → New Application ตั้งชื่อและเลือกประเภท application จะได้รับ OAuth client ID และสามารถสร้าง API keys ได้

รับ credentials

จากหน้า application detail ทำหนึ่งในสองอย่าง:

  • สร้าง M2M API Key สำหรับ server-to-server calls (Authorization: Bearer pip_…)
  • คัดลอก OAuth Client ID + Secret สำหรับ authorization code / client credentials flows

ทดสอบ API call แรก

curl https://pip.pcampus.co/identity/me \
  -H "Authorization: Bearer pip_YOUR_API_KEY"

อ่านรายละเอียดแต่ละขั้นตอนต่อด้านล่าง

Quickstart

Get your first API call working in under 10 minutes.

Create a Pcampus account

Sign up at console.pcampus.co (opens in a new tab). You'll need an organization — create one during onboarding or from Settings → Organizations.

Register an application

In the Console, go to Applications → New Application. Give it a name and choose your application type. This generates an OAuth client ID and lets you create API keys.

Get credentials

From your application's detail page, either:

  • Generate an M2M API Key for server-to-server calls (Authorization: Bearer pip_…)
  • Copy your OAuth Client ID + Secret for authorization code / client credentials flows

Make your first API call

curl https://pip.pcampus.co/identity/me \
  -H "Authorization: Bearer pip_YOUR_API_KEY"

Continue reading for details on each step.