tsifrer / python-twitch-client

Python wrapper for Twitch API

Home Page:http://python-twitch-client.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get clips wrong parameters

ThisisDaan opened this issue · comments

commented

I'm getting an error 500 when trying to get a specific clip by id. I noticed that you've named it "clip_id" while in the helix api on Twitch it's just "id"

https://dev.twitch.tv/docs/api/reference#get-clips

twitch.py
param = { "broadcaster_id": broadcaster_id, "game_id": game_id, "clip_id": clip_id, "after": after, "before": before, "first": first, "ended_at": datetime_to_str(ended_at), "started_at": datetime_to_str(started_at), }

The following fixed the issue:
param = { "broadcaster_id": broadcaster_id, "game_id": game_id, "id": clip_id, "after": after, "before": before, "first": first, "ended_at": datetime_to_str(ended_at), "started_at": datetime_to_str(started_at), }

commented

Not sure if this is the right project. Might have someone else's library.