Created
November 12, 2011 20:13
-
-
Save terrycojones/1361045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User(object): | |
'''A class representing the User structure used by the twitter API. | |
The User structure exposes the following properties: | |
user.id | |
user.name | |
user.screen_name | |
user.location | |
user.description | |
user.profile_image_url | |
user.profile_background_tile | |
user.profile_background_image_url | |
user.profile_sidebar_fill_color | |
user.profile_background_color | |
user.profile_link_color | |
user.profile_text_color | |
user.protected | |
user.utc_offset | |
user.time_zone | |
user.url | |
user.status | |
user.statuses_count | |
user.followers_count | |
user.friends_count | |
user.favourites_count | |
user.geo_enabled | |
user.verified | |
user.lang | |
user.notifications | |
user.contributors_enabled | |
user.created_at | |
user.listed_count | |
''' | |
def __init__(self, | |
id=None, | |
name=None, | |
screen_name=None, | |
location=None, | |
description=None, | |
profile_image_url=None, | |
profile_background_tile=None, | |
profile_background_image_url=None, | |
profile_sidebar_fill_color=None, | |
profile_background_color=None, | |
profile_link_color=None, | |
profile_text_color=None, | |
protected=None, | |
utc_offset=None, | |
time_zone=None, | |
followers_count=None, | |
friends_count=None, | |
statuses_count=None, | |
favourites_count=None, | |
url=None, | |
status=None, | |
geo_enabled=None, | |
verified=None, | |
lang=None, | |
notifications=None, | |
contributors_enabled=None, | |
created_at=None, | |
listed_count=None): | |
self.id = id | |
self.name = name | |
self.screen_name = screen_name | |
self.location = location | |
self.description = description | |
self.profile_image_url = profile_image_url | |
self.profile_background_tile = profile_background_tile | |
self.profile_background_image_url = profile_background_image_url | |
self.profile_sidebar_fill_color = profile_sidebar_fill_color | |
self.profile_background_color = profile_background_color | |
self.profile_link_color = profile_link_color | |
self.profile_text_color = profile_text_color | |
self.protected = protected | |
self.utc_offset = utc_offset | |
self.time_zone = time_zone | |
self.followers_count = followers_count | |
self.friends_count = friends_count | |
self.statuses_count = statuses_count | |
self.favourites_count = favourites_count | |
self.url = url | |
self.status = status | |
self.geo_enabled = geo_enabled | |
self.verified = verified | |
self.lang = lang | |
self.notifications = notifications | |
self.contributors_enabled = contributors_enabled | |
self.created_at = created_at | |
self.listed_count = listed_count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment