Skip to content

Commit a5f9823

Browse files
Merge pull request #3 from Crowd9/GLM-7158_update_deprecated_follow_endpoint
GLM-7158 - update deprecated follow endpoint
2 parents 3c8ac2f + 0a536f6 commit a5f9823

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/twitch/client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ def followed(user_id, options = {})
393393
end
394394

395395
def follow_status(user_id, channel_id, options = {})
396-
options[:from_id] = user_id
397-
options[:to_id] = channel_id
396+
options[:user_id] = user_id
397+
options[:broadcaster_id] = channel_id
398398
query = build_query_string(options)
399-
path = "/users/follows"
399+
path = "/channels/followed"
400400
url = @base_url + path + query
401401

402402
get(url)

0 commit comments

Comments
 (0)