Skip to content

Update Mock API to match production Twitch API - Jan '23 #207

@Xemdo

Description

@Xemdo

The following are missing from the Mock API, but are present in the public Twitch API, and needed to be added into the Twitch CLI: - [All added in fd16e4c except for /chat/shoutouts]

  • /charity/campaigns (GET)
  • /charity/donations (GET)
  • /chat/chatters (GET)
  • /chat/settings (GET, PATCH)
  • /chat/announcements (POST)
  • /chat/color (GET, PUT)
  • /goals (GET)
  • /moderation/bans (POST, DELETE)
  • /moderation/chat (DELETE)
  • /moderation/moderators (POST, DELETE)
  • /moderation/shield_mode (GET, PUT)
  • /moderation/vips (GET, POST, DELETE)
  • /raids (POST, DELETE)
  • /whispers (POST)
  • /chat/shoutouts (POST) [cccb0c5]

The following are in the Twitch CLI but are out of sync with the public Twitch API:

  • GET /bits/cheermotes (data format updated, see docs for new format) - [98df51e]
  • GET /games (missing igdb_id in response and request params) - [975d223]
  • GET /games/top (missing igdb_id in response; Missing pagination params) - [975d223]
  • GET /chat/emotes (In CLI as incorrect endpoint /chat/emotes/channel; Missing fields format, scale, theme_mode; Has unnecessary extra field owner_id) - [f8f15cf]
  • GET /chat/emotes/set (Missing fields owner_id, format, scale, theme_mode) - [f8f15cf]
  • GET /chat/emotes/global (Missing fields format, scale, theme_mode) - [f8f15cf]
  • GET /clips (Field creator_login in CLI should be creator_name; Missing field vod_offset) - [975d223]
  • GET /entitlements/drops (Missing field updated_at) - [975d223]
  • GET /hypetrain/events (Missing pagination) - [f8f15cf]
  • POST /moderation/enforcements/status (Requires unncessary field user_id) - [98df51e]
  • GET /moderation/banned/events (In CLI, but no longer in public API) - [98df51e]
  • GET /moderation/banned (Missing field created_at) - [98df51e]
  • GET /moderation/moderators (Missing one of its scope options) - [98df51e]
  • GET /moderation/moderators/events (In CLI, but no longer in public API) - [98df51e]
  • * /predictions (Doesn't support more than 2 options) [cccb0c5]
  • POST /schedule/segment (CLI requires is_reoccurring, but doc states it is not required; Unnecessary field timezone given in response; response field vacation should be null when empty; Bad dates say "Invalid timezone provided") - [f8f15cf]
  • PATCH /schedule/segment (Unnecessary field timezone given in response; response field vacation should be null when empty) - [f8f15cf]
  • GET /teams/channel (Missing fields broadcaster_id, broadcaster_name, broadcaster_login) - [ba22e4c]
  • GET /videos (video_description field renamed to 'description'; video_language renamed to 'language'; field 'type' is empty but should have a value) - [ba22e4c]
  • POST /users/follows (Doesn't exist in public API anymore) - [9acd6b4]
  • DELETE /users/follows (Doesn't exist in public API anymore) - [9acd6b4]
  • Missing tags fields on Get Streams, Get Followed Streams, Search Channels, Get Channel Information, and Modify Channel Information [cccb0c5]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmock-apiRelates to the `mock-api` feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions