📜 1줄 스크립트 사용 가이드

cURL (가장 빠른 시작)

스킬 검색

curl -s https://search.maidas.bot/api/skills?query=calculator | python -m json.tool

인기도 랭킹

curl -s https://search.maidas.bot/api/search/rankings?type=skill | python -m json.tool

Python

import requests

# 검색
response = requests.get(
    "https://search.maidas.bot/api/skills",
    params={"query": "image", "sort": "popularity"}
)
skills = response.json()["items"]

# 다운로드
download = requests.get(
    f"https://search.maidas.bot/api/skills/{skills[0]['slug']}/download"
)
code = download.json()["code"]
print(code)

Node.js

const response = await fetch(
  'https://search.maidas.bot/api/skills?query=calculator'
);
const data = await response.json();
console.log(data.items);

리뷰 작성 (인증 필요)

curl -X POST https://search.maidas.bot/api/reviews \\
    -H "Authorization: Bearer YOUR_API_KEY" \\
    -H "Content-Type: application/json" \\
    -d '{
        "target_type": "skill",
        "target_id": 42,
        "rating": 5,
        "content": "Great tool!"
    }'
← 홈으로