Closed wolffan closed 9 years ago
These are the fields when you get your own user (/me):
('url', 'id', 'email', 'username', 'description', 'pic', 'upload_pic_url', 'following', 'followers','coins_available', 'coins_locked', 'followers_url', 'following_url', 'follow_url', 'unfollow_url', 'im_following', 'following_me', 'email_notifications')
When you're getting any other user (/user/33):
('url', 'id', 'email', 'username', 'description', 'pic', 'upload_pic_url', 'following', 'followers', 'coins_available', 'coins_locked', 'followers_url', 'following_url', 'follow_url', 'unfollow_url', 'im_following', 'following_me', 'email_notifications')
When the object user is nested inside another object (like the winners attribute of a bet), it's represented in a short version:
('id', 'url', 'username', 'pic', 'im_following', 'following_me')
OMG I see... not straightforward for subclassing, thanks!
The object winner seems to be an array of users. But the user object has different fields. Is the object going to be added elsewhere? Should I add the following/follower objects to the base user object?