Module: Twitch::Client::CustomRewards

Included in:
Twitch::Client
Defined in:
lib/twitch/client/custom_rewards.rb

Overview

API methods for custom rewards

Instance Method Summary collapse

Instance Method Details

#create_custom_reward(options = {}) ⇒ Object



7
8
9
# File 'lib/twitch/client/custom_rewards.rb', line 7

def create_custom_reward(options = {})
  initialize_response CustomReward, post('channel_points/custom_rewards', options)
end

#delete_custom_reward(options = {}) ⇒ Object



15
16
17
# File 'lib/twitch/client/custom_rewards.rb', line 15

def delete_custom_reward(options = {})
  initialize_response CustomReward, delete('channel_points/custom_rewards', options)
end

#get_custom_reward(options = {}) ⇒ Object



11
12
13
# File 'lib/twitch/client/custom_rewards.rb', line 11

def get_custom_reward(options = {})
  initialize_response CustomReward, get('channel_points/custom_rewards', options)
end

#get_custom_reward_redemption(options = {}) ⇒ Object



19
20
21
# File 'lib/twitch/client/custom_rewards.rb', line 19

def get_custom_reward_redemption(options = {})
  initialize_response CustomReward, get('channel_points/custom_rewards/redemptions', options)
end

#update_custom_reward(options = {}) ⇒ Object



23
24
25
# File 'lib/twitch/client/custom_rewards.rb', line 23

def update_custom_reward(options = {})
  initialize_response CustomReward, patch('channel_points/custom_rewards', options)
end

#update_redemption_status(options = {}) ⇒ Object



27
28
29
30
31
32
# File 'lib/twitch/client/custom_rewards.rb', line 27

def update_redemption_status(options = {})
  initialize_response(
    CustomReward,
    patch('channel_points/custom_rewards/redemptions', options)
  )
end