for any info/changes follow me: @nickmilon
twtPyCurl.twt.endpoints module¶
classes to construct twitter end points
-
class
twtPyCurl.twt.endpoints.
EndPoints
(path_to_txt_file=None, parent=None)[source]¶ Bases:
object
Base class for end points
-
_msg_wrong_ep
= 'no such end point, select one of the following:'¶
-
delimiter
= '/'¶
-
-
class
twtPyCurl.twt.endpoints.
EndPointsRest
(parent=None)[source]¶ Bases:
twtPyCurl.twt.endpoints.EndPoints
Twitter Rest Api End Points
-
_end_points
= {'search': {'tweets': {'path': 'search/tweets', 'method': 'GET'}}, 'blocks': {'destroy': {'path': 'blocks/destroy', 'method': 'POST'}, 'create': {'path': 'blocks/create', 'method': 'POST'}, 'list': {'path': 'blocks/list', 'method': 'GET'}, 'ids': {'path': 'blocks/ids', 'method': 'GET'}}, 'users': {'report_spam': {'path': 'users/report_spam', 'method': 'POST'}, 'search': {'path': 'users/search', 'method': 'GET'}, 'contributors': {'path': 'users/contributors', 'method': 'GET'}, 'show': {'path': 'users/show', 'method': 'GET'}, 'profile_banner': {'path': 'users/profile_banner', 'method': 'GET'}, 'suggestions': {'path': 'users/suggestions', 'method': 'GET', ':slug': {'path': 'users/suggestions/:slug', 'method': 'GET', 'members': {'path': 'users/suggestions/:slug/members', 'method': 'GET'}}}, 'contributees': {'path': 'users/contributees', 'method': 'GET'}, 'lookup': {'path': 'users/lookup', 'method': 'GET'}}, 'media': {'upload.json': {'path': 'media/upload.json', 'method': 'POST'}}, 'help': {'languages': {'path': 'help/languages', 'method': 'GET'}, 'tos': {'path': 'help/tos', 'method': 'GET'}, 'configuration': {'path': 'help/configuration', 'method': 'GET'}, 'privacy': {'path': 'help/privacy', 'method': 'GET'}}, 'account': {'update_profile': {'path': 'account/update_profile', 'method': 'POST'}, 'settings': {'path': 'account/settings', 'method': 'POST'}, 'update_delivery_device': {'path': 'account/update_delivery_device', 'method': 'POST'}, 'update_profile_banner': {'path': 'account/update_profile_banner', 'method': 'POST'}, 'remove_profile_banner': {'path': 'account/remove_profile_banner', 'method': 'POST'}, 'verify_credentials': {'path': 'account/verify_credentials', 'method': 'GET'}, 'update_profile_image': {'path': 'account/update_profile_image', 'method': 'POST'}, 'update_profile_background_image': {'path': 'account/update_profile_background_image', 'method': 'POST'}}, 'lists': {'ownerships': {'path': 'lists/ownerships', 'method': 'GET'}, 'subscribers': {'destroy': {'path': 'lists/subscribers/destroy', 'method': 'POST'}, 'path': 'lists/subscribers', 'create': {'path': 'lists/subscribers/create', 'method': 'POST'}, 'method': 'GET', 'show': {'path': 'lists/subscribers/show', 'method': 'GET'}}, 'show': {'path': 'lists/show', 'method': 'GET'}, 'create': {'path': 'lists/create', 'method': 'POST'}, 'subscriptions': {'path': 'lists/subscriptions', 'method': 'GET'}, 'list': {'path': 'lists/list', 'method': 'GET'}, 'update': {'path': 'lists/update', 'method': 'POST'}, 'memberships': {'path': 'lists/memberships', 'method': 'GET'}, 'members': {'show': {'path': 'lists/members/show', 'method': 'GET'}, 'create': {'path': 'lists/members/create', 'method': 'POST'}, 'create_all': {'path': 'lists/members/create_all', 'method': 'POST'}, 'destroy_all': {'path': 'lists/members/destroy_all', 'method': 'POST'}, 'path': 'lists/members', 'destroy': {'path': 'lists/members/destroy', 'method': 'POST'}, 'method': 'GET'}, 'destroy': {'path': 'lists/destroy', 'method': 'POST'}, 'statuses': {'path': 'lists/statuses', 'method': 'GET'}}, '__doc__': ' foo bar', 'geo': {'similar_places': {'path': 'geo/similar_places', 'method': 'GET'}, 'place': {'path': 'geo/place', 'method': 'POST'}, 'search': {'path': 'geo/search', 'method': 'GET'}, 'reverse_geocode': {'path': 'geo/reverse_geocode', 'method': 'GET'}, 'id': {':place_id': {'path': 'geo/id/:place_id', 'method': 'GET'}}}, 'application': {'rate_limit_status': {'path': 'application/rate_limit_status', 'method': 'GET'}}, 'trends': {'available': {'path': 'trends/available', 'method': 'GET'}, 'place': {'path': 'trends/place', 'method': 'GET'}, 'closest': {'path': 'trends/closest', 'method': 'GET'}}, 'followers': {'list': {'path': 'followers/list', 'method': 'GET'}, 'ids': {'path': 'followers/ids', 'method': 'GET'}}, 'favorites': {'destroy': {'path': 'favorites/destroy', 'method': 'POST'}, 'create': {'path': 'favorites/create', 'method': 'POST'}, 'list': {'path': 'favorites/list', 'method': 'GET'}}, 'friendships': {'outgoing': {'path': 'friendships/outgoing', 'method': 'GET'}, 'incoming': {'path': 'friendships/incoming', 'method': 'GET'}, 'no_retweets': {'ids': {'path': 'friendships/no_retweets/ids', 'method': 'GET'}}, 'show': {'path': 'friendships/show', 'method': 'GET'}, 'create': {'path': 'friendships/create', 'method': 'POST'}, 'update': {'path': 'friendships/update', 'method': 'POST'}, 'lookup': {'path': 'friendships/lookup', 'method': 'GET'}, 'destroy': {'path': 'friendships/destroy', 'method': 'POST'}}, 'saved_searches': {'destroy': {'id': {'path': 'saved_searches/destroy/id', 'method': 'POST'}}, 'create': {'path': 'saved_searches/create', 'method': 'POST'}, 'list': {'path': 'saved_searches/list', 'method': 'GET'}, 'show': {'id': {'path': 'saved_searches/show/id', 'method': 'GET'}}}, 'friends': {'list': {'path': 'friends/list', 'method': 'GET'}, 'ids': {'path': 'friends/ids', 'method': 'GET'}}, 'direct_messages': {'show': {'path': 'direct_messages/show', 'method': 'GET'}, 'new': {'path': 'direct_messages/new', 'method': 'POST'}, 'path': 'direct_messages', 'destroy': {'path': 'direct_messages/destroy', 'method': 'POST'}, 'method': 'GET', 'sent': {'path': 'direct_messages/sent', 'method': 'GET'}}, 'statuses': {'user_timeline': {'path': 'statuses/user_timeline', 'method': 'GET'}, 'retweeters': {'ids': {'path': 'statuses/retweeters/ids', 'method': 'GET'}}, 'retweets_of_me': {'path': 'statuses/retweets_of_me', 'method': 'GET'}, 'show': {'id': {'path': 'statuses/show/id', 'method': 'GET'}}, 'update': {'path': 'statuses/update', 'method': 'POST'}, 'oembed': {'path': 'statuses/oembed', 'method': 'GET'}, 'home_timeline': {'path': 'statuses/home_timeline', 'method': 'GET'}, 'retweets': {'id': {'path': 'statuses/retweets/id', 'method': 'GET'}}, 'destroy': {'id': {'path': 'statuses/destroy/id', 'method': 'POST'}}, 'lookup': {'path': 'statuses/lookup', 'method': 'GET'}, 'mentions_timeline': {'path': 'statuses/mentions_timeline', 'method': 'GET'}, 'retweet': {'id': {'path': 'statuses/retweet/id', 'method': 'POST'}}}, 'mutes': {'users': {'destroy': {'path': 'mutes/users/destroy', 'method': 'POST'}, 'create': {'path': 'mutes/users/create', 'method': 'POST'}, 'list': {'path': 'mutes/users/list', 'method': 'GET'}, 'ids': {'path': 'mutes/users/ids', 'method': 'GET'}}}}¶
-
msg_frmt
= '{}{}'¶
-
-
class
twtPyCurl.twt.endpoints.
EndPointsStream
(parent=None)[source]¶ Bases:
twtPyCurl.twt.endpoints.EndPoints
-
_end_points
= {'sitestream': {'site': {'path': 'sitestream/site', 'method': 'GET'}}, 'userstream': {'user': {'path': 'userstream/user', 'method': 'GET'}}, '__doc__': ' foo bar', 'stream': {'statuses': {'filter': {'path': 'stream/statuses/filter', 'method': 'POST'}, 'sample': {'path': 'stream/statuses/sample', 'method': 'GET'}, 'firehose': {'path': 'stream/statuses/firehose', 'method': 'GET'}}}}¶
-
-
twtPyCurl.twt.endpoints.
END_POINTS_REST
¶ Twitter Rest Api End Points
-
twtPyCurl.twt.endpoints.
END_POINTS_STREAM
¶