Quick Start
5분 안에 inlink API를 연동하는 방법을 알아봅니다.
1. API 키 발급
Developer 콘솔에서 API 키를 생성하세요.
- inlink에 로그인
- Developer > API Keys 이동
- “새 키 생성” 클릭
- 키 이름과 스코프(권한) 설정
- 생성된 키를 안전하게 보관
⚠️ API 키는 생성 시 한 번만 표시됩니다. 분실 시 새로 발급해야 합니다. 키를 코드에 하드코딩하지 마세요.
2. 첫 번째 API 호출
curl https://api.inlink.to/v1/campaigns \
-H "Authorization: Bearer inl_your_api_key" \
-H "Content-Type: application/json"3. Node.js SDK 사용
npm install @inlink/sdk
import { InlinkClient } from '@inlink/sdk';
const client = new InlinkClient({ apiKey: 'inl_your_api_key' });
// 캠페인 목록 조회
const campaigns = await client.campaigns.list({
status: 'active',
limit: 10,
});
// 인플루언서 검색
const influencers = await client.influencers.search({
category: 'beauty',
min_followers: 10000,
country: 'KR',
});4. Python SDK 사용
pip install inlink
from inlink import InlinkClient
client = InlinkClient(api_key="inl_your_api_key")
# 캠페인 목록 조회
campaigns = client.campaigns.list(status="active", limit=10)
# 인플루언서 검색
influencers = client.influencers.search(
category="beauty",
min_followers=10000,
country="KR"
)5. 웹훅 설정
curl -X POST https://api.inlink.to/v1/webhooks \
-H "Authorization: Bearer inl_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["campaign.created", "application.received"],
"secret": "your_webhook_secret"
}'