TwitchApi.Tags.ReplaceStreamTags (TwitchApi v0.1.2) View Source

⛔ This module is autogenerated please do not modify manually.

Example request from twitch api docs:

descriptions:

This example applies two stream tags to channel 257788195. The response body is empty.

requests:

curl -X PUT 'https://api.twitch.tv/helix/streams/tags?broadcaster_id=257788195'
-H'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx'
-H'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'
-H'Content-Type: application/json'
-d'{"tag_ids":["621fb5bf-5498-4d8f-b4ac-db4d40d401bf","52d7e4cc-633d-46f5-818c-bb59102d9549"]}'

Example response from twitch api docs:

descriptions:

responses:

Twitch CLI examples that:# Adds two stream tags to the channel.

twitch api put /streams/tags -qbroadcaster_id=1234567 -b'{"tag_ids":["621fb5bf-5498-4d8f-b4ac-db4d40d401bf", "52d7e4cc-633d-46f5-818c-bb59102d9549"]}'# Removes all stream tags from the channel. twitch api put /streams/tags -qbroadcaster_id=1234567 -b'{"tag_ids":[]}'

Link to this section Summary

Types

The user ID of the channel to apply the tags to.

Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"

Functions

Description:

Applies one or more tags to the specified channel, overwriting any existing tags.

Link to this section Types

Specs

broadcaster_id() :: %{broadcaster_id: String.t()}

The user ID of the channel to apply the tags to.

Specs

user_info() :: %{user_id: integer() | binary()} | %{user_name: binary()}

Map containing the user needed information for the fetch of the required user OAuth access token. You will be able to choose from one way or the other for fetching previously OAuth access tokens. :user_id field contains the user ID from twitch, e.g. 61425548 or "61425548" :user_name field constains the user name from twitch, e.g. "hiimkamiyuzu"

Link to this section Functions

Specs

call(broadcaster_id(), user_info()) ::
  {:ok, Finch.Response.t()} | {:error, Exception.t()}

Description:

Applies one or more tags to the specified channel, overwriting any existing tags.

Required authentication:

Requires a user OAuth access token with a scope of channel:manage:broadcast .

Required authorization: