Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 44a7f7a

Browse files
author
adam zethraeus
committed
include default_profile and default_profile_image in User object
1 parent 6aa684f commit 44a7f7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

twitter/user.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ class User(object):
136136
user.screen_name
137137
user.location
138138
user.description
139+
user.default_profile
140+
user.default_profile_image
139141
user.profile_image_url
140142
user.profile_background_tile
141143
user.profile_background_image_url
@@ -168,6 +170,8 @@ def __init__(self, **kwargs):
168170
'screen_name': None,
169171
'location': None,
170172
'description': None,
173+
'default_profile': None,
174+
'default_profile_image': None,
171175
'profile_image_url': None,
172176
'profile_background_tile': None,
173177
'profile_background_image_url': None,
@@ -827,6 +831,8 @@ def NewFromJsonDict(data):
827831
statuses_count=data.get('statuses_count', None),
828832
followers_count=data.get('followers_count', None),
829833
favourites_count=data.get('favourites_count', None),
834+
default_profile=data.get('default_profile', None),
835+
default_profile_image=data.get('default_profile_image', None),
830836
friends_count=data.get('friends_count', None),
831837
profile_image_url=data.get('profile_image_url_https', data.get('profile_image_url', None)),
832838
profile_background_tile=data.get('profile_background_tile', None),

0 commit comments

Comments
 (0)