def followChannel(name):
username, userId = user(oauth)
channelId = getChannelId(name)
URL = f"https://api.twitch.tv/helix/users/follows"
Headers = {"Accept": "application/vnd.twitchtv.v5+json", "Client-ID": clientId, "Authorization": "Bearer " + oauth}
r = requests.get(URL, headers=Headers)
data = r.json()
print(data)
I get the error {'error': 'Bad Request', 'status': 400, 'message': 'Must provide either from_id or to_id'}
I am not sure where to put the from_id and to_id parameters. Any clue?