GET/api/events
「イベント」の分類の、情報を読み出す API。ログインした本人として呼ぶ。
- 要約
アプリ内のイベント一覧(開催中 → これから。終わったもの・隠したものは出さない)。機能の ON / OFF・自分が参加者か・管理できるか
- 呼び方と印
ログイン
返るもの(応答)200 · application/json
成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。
eventsarray<object>idstringslugstringfoursEventIdstringtitlestringcatchphrasestring | nullcoverUrlstring | nullstartsAtstring | nullendsAtstring | nulltimezonestringdatesstringvenuestring | nullfoursUrlstring | nullphase"upcoming" | "ongoing" | "past"isPrimarybooleanmode任意"small" | "large"featuresobjectwantedbooleanboshubooleantimetablebooleancheckinbooleansurveybooleanqabooleanmeet_qrbooleanrankingbooleanvenue_mapbooleanstampsbooleangroupsbooleanself_joinbooleantriobooleancontentsbooleanexhibitionsbooleanwall_consultbooleanmeet_limitsbooleanmeet_tablesbooleanmeet_followupbooleanmeet_reciprocalbooleanticket_modulesbooleanwanted_rotationboolean
participatingbooleanmanagingboolean
失敗したとき(エラー)
失敗したときの状態コードと、その意味。本文の error の値で、プログラムが失敗の種類を見分けられる。
- 400入力の誤り(error = invalid_input など)
- 401未ログイン(unauthorized)/ Bearer が無効(invalid_token。WWW-Authenticate 付き)
- 403権限が無い
呼び出しの見本
そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。
curl "https://bounty.spikes.4s.link/api/events" \
-H "Authorization: Bearer $BEARER_AUTH"