Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel Subscriptions Snipped..? #42

Open
SCVODArchives opened this issue Jul 4, 2018 · 1 comment
Open

Channel Subscriptions Snipped..? #42

SCVODArchives opened this issue Jul 4, 2018 · 1 comment
Labels

Comments

@SCVODArchives
Copy link

SCVODArchives commented Jul 4, 2018

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
Copy link
Author

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',

@tsifrer tsifrer added the bug label Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants