Node.js向けconnpass APIクライアントライブラリ
Note
このプロジェクトは node-connpass (by @potato4d) のフォークです。
npm i connpass-v2
import { Connpass } from 'connpass-v2'
async function run() {
// 初期化
const apiKey = '<YOUR_API_KEY>'
const client = new Connpass(apiKey)
// イベント一覧取得
const { events } = await client.getEvents()
// イベント資料一覧取得
const { presentations } = await client.getEventPresentations('<EVENT_ID>')
// グループ一覧取得
const { groups } = await client.getGropus({
subdomain: ['bpstudy', 'beproud'],
})
// ユーザー一覧取得
const { users } = await client.getUsers({
nickname: ['haru860', 'ian'],
})
// ユーザー所属グループ一覧取得
const { groups } = await client.getUserGroups('haru860')
// ユーザー参加イベント一覧取得
const { events } = await client.getUserAttendedEvents('haru860')
// ユーザー発表イベント一覧取得
const { events } = await client.getUserPresenterEvents('haru860')
}
See here.
This project is licensed under the MIT License - see the LICENSE file for details.