python-twitch-client icon indicating copy to clipboard operation
python-twitch-client copied to clipboard

Channel Subscriptions Snipped..?

Open SCVODArchives opened this issue 7 years ago • 1 comments

I've set the oauth token when creating the client object and the return json is incomplete, seems to be snipped. Because of this the _total attribute is missing.

client = TwitchClient(client_id=XXXX, oauth_token=XXXX) client.channels.get_subscribers(XXXX)

The partial data that is being returned is correct. There are only 6 subscriptions so it's not due to limits. When limiting to a number less than total subscriptions, all are listed, but _total attribute is missing.

SCVODArchives avatar Jul 04 '18 04:07 SCVODArchives

I just edited the channels.py to return the entire response, not just a list of subscribers, so I could get the _total attribute which is my primary concern but the actual list is still snipped/incomplete.

Example of response: { '_total': 6, 'subscriptions': [{ 'created_at': '2018-06-09T02:09:28Z', '_id': 'xxx', 'sub_plan': '1000', 'sub_plan_name': 'Channel Subscription (xxx)', 'is_gift': False, 'user': { 'display_name': 'xxx', 'type': 'user', 'bio': 'xxxx', 'created_at': '2012-07-27T15:45:06Z', 'updated_at': '2018-06-11T01:03:29Z', 'name': 'xxxxx', '_id': 'xxxx', 'logo': 'https://static-cdn.jtvnw.net/jtv_user_pictures/xxxxx-profile_image-7c8424d48610e2f6-300x300.png' }, 'sender': None }, { 'created_at': '2018-06-02T23:50:37Z', '_id': 'xxxxx', 'sub_plan': '1000', 'sub_plan_name': 'Channel Subscription (xxxx)', 'is_gift': False, 'user': { 'display_name': 'xxxx', 'type': 'user', 'bio': 'xxxx', 'created_at': '2011-03-30T01:13:06Z', 'updated_at': '2018-07-03T23:30:07Z',

SCVODArchives avatar Jul 04 '18 21:07 SCVODArchives