Update Twitter Developers API reference links
authorHarmon <Harmon758@gmail.com>
Fri, 6 Jul 2018 07:48:37 +0000 (02:48 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 6 Jul 2018 07:48:37 +0000 (02:48 -0500)
docs/api.rst
tweepy/api.py
tweepy/streaming.py

index de4de89431b48c08788ebd664059d47ba3e6e4b0..66f2b3cfeb3fe70af2a6e6f0a6a9673e0fae8af4 100644 (file)
@@ -53,7 +53,7 @@ Timeline methods
    `id` parameter.
 
    :param id_: A list of Tweet IDs to lookup, up to 100
-   :param include_entities: A boolean indicating whether or not to include [entities](https://dev.twitter.com/docs/entities) in the returned tweets. Defaults to False.
+   :param include_entities: A boolean indicating whether or not to include [entities](https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object) in the returned tweets. Defaults to False.
    :param trim_user: A boolean indicating if user IDs should be provided, instead of full user information. Defaults to False.
    :param map_: A boolean indicating whether or not to include tweets that cannot be shown, but with a value of None. Defaults to False.
    :rtype: list of :class:`Status` objects
index b627f0764da277ed166c381e9b83a46c4b12698f..7ba91e6ff07a1f9ea54e42d444e07da6965c8691 100644 (file)
@@ -82,7 +82,7 @@ class API(object):
 
     @property
     def home_timeline(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/home_timeline
+        """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline
             :allowed_param:'since_id', 'max_id', 'count'
         """
         return bind_api(
@@ -100,7 +100,7 @@ class API(object):
 
     @property
     def _statuses_lookup(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/lookup
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup
             :allowed_param:'id', 'include_entities', 'trim_user', 'map', 'tweet_mode'
         """
         return bind_api(
@@ -113,7 +113,7 @@ class API(object):
 
     @property
     def user_timeline(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/user_timeline
+        """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline
             :allowed_param:'id', 'user_id', 'screen_name', 'since_id', 'max_id', 'count', 'include_rts', 'trim_user', 'exclude_replies'
         """
         return bind_api(
@@ -127,7 +127,7 @@ class API(object):
 
     @property
     def mentions_timeline(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/mentions_timeline
+        """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-mentions_timeline
             :allowed_param:'since_id', 'max_id', 'count'
         """
         return bind_api(
@@ -153,7 +153,7 @@ class API(object):
 
     @property
     def retweets_of_me(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/retweets_of_me
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets_of_me
             :allowed_param:'since_id', 'max_id', 'count'
         """
         return bind_api(
@@ -166,7 +166,7 @@ class API(object):
 
     @property
     def get_status(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/show/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -177,7 +177,7 @@ class API(object):
         )
 
     def update_status(self, *args, **kwargs):
-        """ :reference: https://dev.twitter.com/rest/reference/post/statuses/update
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update
             :allowed_param:'status', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'auto_populate_reply_metadata', 'lat', 'long', 'source', 'place_id', 'display_coordinates', 'media_ids'
         """
         post_data = {}
@@ -195,7 +195,7 @@ class API(object):
         )(post_data=post_data, *args, **kwargs)
 
     def media_upload(self, filename, *args, **kwargs):
-        """ :reference: https://dev.twitter.com/rest/reference/post/media/upload
+        """ :reference: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload
             :allowed_param:
         """
         f = kwargs.pop('file', None)
@@ -213,7 +213,7 @@ class API(object):
         )(*args, **kwargs)
 
     def update_with_media(self, filename, *args, **kwargs):
-        """ :reference: https://dev.twitter.com/rest/reference/post/statuses/update_with_media
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update_with_media
             :allowed_param:'status', 'possibly_sensitive', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'auto_populate_reply_metadata', 'lat', 'long', 'place_id', 'display_coordinates'
         """
         f = kwargs.pop('file', None)
@@ -234,7 +234,7 @@ class API(object):
 
     @property
     def destroy_status(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/statuses/destroy/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -248,7 +248,7 @@ class API(object):
 
     @property
     def retweet(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/statuses/retweet/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -262,7 +262,7 @@ class API(object):
 
     @property
     def unretweet(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/statuses/unretweet/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -276,7 +276,7 @@ class API(object):
 
     @property
     def retweets(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/retweets/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id
             :allowed_param:'id', 'count'
         """
         return bind_api(
@@ -289,7 +289,7 @@ class API(object):
 
     @property
     def retweeters(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/retweeters/ids
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids
             :allowed_param:'id', 'cursor', 'stringify_ids
         """
         return bind_api(
@@ -301,7 +301,7 @@ class API(object):
 
     @property
     def get_user(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/show
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -313,7 +313,7 @@ class API(object):
 
     @property
     def get_oembed(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/statuses/oembed
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed
             :allowed_param:'id', 'url', 'maxwidth', 'hide_media', 'omit_script', 'align', 'related', 'lang'
         """
         return bind_api(
@@ -338,7 +338,7 @@ class API(object):
 
     @property
     def _lookup_users(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/lookup
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup
             allowed_param='user_id', 'screen_name', 'include_entities'
         """
         return bind_api(
@@ -355,7 +355,7 @@ class API(object):
 
     @property
     def search_users(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/search
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-search
             :allowed_param:'q', 'count', 'page'
         """
         return bind_api(
@@ -368,7 +368,7 @@ class API(object):
 
     @property
     def suggested_users(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/suggestions/%3Aslug
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions-slug
             :allowed_param:'slug', 'lang'
         """
         return bind_api(
@@ -381,7 +381,7 @@ class API(object):
 
     @property
     def suggested_categories(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/suggestions
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions
             :allowed_param:'lang'
         """
         return bind_api(
@@ -394,7 +394,7 @@ class API(object):
 
     @property
     def suggested_users_tweets(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/users/suggestions/%3Aslug/members
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions-slug-members
             :allowed_param:'slug'
         """
         return bind_api(
@@ -407,7 +407,7 @@ class API(object):
 
     @property
     def direct_messages(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/direct_messages
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-messages
             :allowed_param:'since_id', 'max_id', 'count', 'full_text'
         """
         return bind_api(
@@ -420,7 +420,7 @@ class API(object):
 
     @property
     def get_direct_message(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/direct_messages/show
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-message
             :allowed_param:'id', 'full_text'
         """
         return bind_api(
@@ -433,7 +433,7 @@ class API(object):
 
     @property
     def sent_direct_messages(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/direct_messages/sent
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-sent-message
             :allowed_param:'since_id', 'max_id', 'count', 'page', 'full_text'
         """
         return bind_api(
@@ -446,7 +446,7 @@ class API(object):
 
     @property
     def send_direct_message(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/direct_messages/new
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-message
             :allowed_param:'user', 'screen_name', 'user_id', 'text'
         """
         return bind_api(
@@ -460,7 +460,7 @@ class API(object):
 
     @property
     def destroy_direct_message(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/direct_messages/destroy
+        """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/delete-message
             :allowed_param:'id'
         """
         return bind_api(
@@ -474,7 +474,7 @@ class API(object):
 
     @property
     def create_friendship(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/friendships/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create
             :allowed_param:'id', 'user_id', 'screen_name', 'follow'
         """
         return bind_api(
@@ -488,7 +488,7 @@ class API(object):
 
     @property
     def destroy_friendship(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/friendships/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-destroy
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -502,7 +502,7 @@ class API(object):
 
     @property
     def show_friendship(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friendships/show
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show
             :allowed_param:'source_id', 'source_screen_name', 'target_id', 'target_screen_name'
         """
         return bind_api(
@@ -519,7 +519,7 @@ class API(object):
 
     @property
     def _lookup_friendships(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friendships/lookup
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup
             :allowed_param:'user_id', 'screen_name'
         """
         return bind_api(
@@ -532,7 +532,7 @@ class API(object):
 
     @property
     def friends_ids(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friends/ids
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
             :allowed_param:'id', 'user_id', 'screen_name', 'cursor'
         """
         return bind_api(
@@ -544,7 +544,7 @@ class API(object):
 
     @property
     def friends(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friends/list
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-list
             :allowed_param:'id', 'user_id', 'screen_name', 'cursor', 'skip_status', 'include_user_entities'
         """
         return bind_api(
@@ -556,7 +556,7 @@ class API(object):
 
     @property
     def friendships_incoming(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friendships/incoming
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-incoming
             :allowed_param:'cursor'
         """
         return bind_api(
@@ -568,7 +568,7 @@ class API(object):
 
     @property
     def friendships_outgoing(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/friendships/outgoing
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-outgoing
             :allowed_param:'cursor'
         """
         return bind_api(
@@ -580,7 +580,7 @@ class API(object):
 
     @property
     def followers_ids(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/followers/ids
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
             :allowed_param:'id', 'user_id', 'screen_name', 'cursor', 'count'
         """
         return bind_api(
@@ -592,7 +592,7 @@ class API(object):
 
     @property
     def followers(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/followers/list
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-list
             :allowed_param:'id', 'user_id', 'screen_name', 'cursor', 'count', 'skip_status', 'include_user_entities'
         """
         return bind_api(
@@ -605,7 +605,7 @@ class API(object):
 
     @property
     def get_settings(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/account/settings
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-settings
         """
         return bind_api(
             api=self,
@@ -616,7 +616,7 @@ class API(object):
 
     @property
     def set_settings(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/account/settings
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-settings
             :allowed_param:'sleep_time_enabled', 'start_sleep_time',
             'end_sleep_time', 'time_zone', 'trend_location_woeid',
             'allow_contributor_request', 'lang'
@@ -634,7 +634,7 @@ class API(object):
         )
 
     def verify_credentials(self, **kargs):
-        """ :reference: https://dev.twitter.com/rest/reference/get/account/verify_credentials
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
             :allowed_param:'include_entities', 'skip_status', 'include_email'
         """
         try:
@@ -652,7 +652,7 @@ class API(object):
 
     @property
     def rate_limit_status(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/application/rate_limit_status
+        """ :reference: https://developer.twitter.com/en/docs/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status
             :allowed_param:'resources'
         """
         return bind_api(
@@ -678,7 +678,7 @@ class API(object):
         )
 
     def update_profile_image(self, filename, file_=None):
-        """ :reference: https://dev.twitter.com/rest/reference/post/account/update_profile_image
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
             :allowed_param:'include_entities', 'skip_status'
         """
         headers, post_data = API._pack_image(filename, 700, f=file_)
@@ -692,7 +692,7 @@ class API(object):
         )(self, post_data=post_data, headers=headers)
 
     def update_profile_background_image(self, filename, **kargs):
-        """ :reference: https://dev.twitter.com/rest/reference/post/account/update_profile_background_image
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_background_image
             :allowed_param:'tile', 'include_entities', 'skip_status', 'use'
         """
         f = kargs.pop('file', None)
@@ -707,7 +707,7 @@ class API(object):
         )(post_data=post_data, headers=headers)
 
     def update_profile_banner(self, filename, **kargs):
-        """ :reference: https://dev.twitter.com/rest/reference/post/account/update_profile_banner
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_banner
             :allowed_param:'width', 'height', 'offset_left', 'offset_right'
         """
         f = kargs.pop('file', None)
@@ -722,7 +722,7 @@ class API(object):
 
     @property
     def update_profile(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/account/update_profile
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile
             :allowed_param:'name', 'url', 'location', 'description', 'profile_link_color'
         """
         return bind_api(
@@ -736,7 +736,7 @@ class API(object):
 
     @property
     def favorites(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/favorites/list
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list
             :allowed_param:'screen_name', 'user_id', 'max_id', 'count', 'since_id', 'max_id'
         """
         return bind_api(
@@ -748,7 +748,7 @@ class API(object):
 
     @property
     def create_favorite(self):
-        """ :reference:https://dev.twitter.com/rest/reference/post/favorites/create
+        """ :reference:https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-create
             :allowed_param:'id'
         """
         return bind_api(
@@ -762,7 +762,7 @@ class API(object):
 
     @property
     def destroy_favorite(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/favorites/destroy
+        """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy
             :allowed_param:'id'
         """
         return bind_api(
@@ -776,7 +776,7 @@ class API(object):
 
     @property
     def create_block(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/blocks/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-blocks-create
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -790,7 +790,7 @@ class API(object):
 
     @property
     def destroy_block(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/blocks/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-blocks-destroy
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -804,7 +804,7 @@ class API(object):
 
     @property
     def mutes_ids(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/mutes/users/ids """
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-ids """
         return bind_api(
             api=self,
             path='/mutes/users/ids.json',
@@ -814,7 +814,7 @@ class API(object):
 
     @property
     def create_mute(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/mutes/users/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-create
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -828,7 +828,7 @@ class API(object):
 
     @property
     def destroy_mute(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/mutes/users/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-destroy
             :allowed_param:'id', 'user_id', 'screen_name'
         """
         return bind_api(
@@ -844,7 +844,7 @@ class API(object):
 
     @property
     def blocks(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/blocks/list
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list
             :allowed_param:'cursor'
         """
         return bind_api(
@@ -857,7 +857,7 @@ class API(object):
 
     @property
     def blocks_ids(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/blocks/ids """
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-ids """
         return bind_api(
             api=self,
             path='/blocks/ids.json',
@@ -867,7 +867,7 @@ class API(object):
 
     @property
     def report_spam(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/users/report_spam
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-users-report_spam
             :allowed_param:'user_id', 'screen_name'
         """
         return bind_api(
@@ -881,7 +881,7 @@ class API(object):
 
     @property
     def saved_searches(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/saved_searches/show/%3Aid """
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id """
         return bind_api(
             api=self,
             path='/saved_searches/list.json',
@@ -891,7 +891,7 @@ class API(object):
 
     @property
     def get_saved_search(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/saved_searches/show/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -904,7 +904,7 @@ class API(object):
 
     @property
     def create_saved_search(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/saved_searches/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create
             :allowed_param:'query'
         """
         return bind_api(
@@ -918,7 +918,7 @@ class API(object):
 
     @property
     def destroy_saved_search(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/saved_searches/destroy/%3Aid
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id
             :allowed_param:'id'
         """
         return bind_api(
@@ -932,7 +932,7 @@ class API(object):
 
     @property
     def create_list(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/lists/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-create
             :allowed_param:'name', 'mode', 'description'
         """
         return bind_api(
@@ -946,7 +946,7 @@ class API(object):
 
     @property
     def destroy_list(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/lists/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy
             :allowed_param:'owner_screen_name', 'owner_id', 'list_id', 'slug'
         """
         return bind_api(
@@ -960,7 +960,7 @@ class API(object):
 
     @property
     def update_list(self):
-        """ :reference: https://dev.twitter.com/rest/reference/post/lists/update
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-update
             :allowed_param: list_id', 'slug', 'name', 'mode', 'description', 'owner_screen_name', 'owner_id'
         """
         return bind_api(
@@ -974,7 +974,7 @@ class API(object):
 
     @property
     def lists_all(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/lists/list
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-list
             :allowed_param:'screen_name', 'user_id'
         """
         return bind_api(
@@ -987,7 +987,7 @@ class API(object):
 
     @property
     def lists_memberships(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/lists/memberships
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-memberships
             :allowed_param:'screen_name', 'user_id', 'filter_to_owned_lists', 'cursor'
         """
         return bind_api(
@@ -1000,7 +1000,7 @@ class API(object):
 
     @property
     def lists_subscriptions(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/lists/subscriptions
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions
             :allowed_param:'screen_name', 'user_id', 'cursor'
         """
         return bind_api(
@@ -1013,7 +1013,7 @@ class API(object):
 
     @property
     def list_timeline(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/lists/statuses
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses
             :allowed_param:'owner_screen_name', 'slug', 'owner_id', 'list_id',
              'since_id', 'max_id', 'count', 'include_rts
         """
@@ -1028,7 +1028,7 @@ class API(object):
 
     @property
     def get_list(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/lists/show
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-show
             :allowed_param:'owner_screen_name', 'owner_id', 'slug', 'list_id'
         """
         return bind_api(
@@ -1040,7 +1040,7 @@ class API(object):
 
     @property
     def add_list_member(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/members/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create
             :allowed_param:'screen_name', 'user_id', 'owner_screen_name',
              'owner_id', 'slug', 'list_id'
         """
@@ -1056,7 +1056,7 @@ class API(object):
 
     @property
     def remove_list_member(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy
             :allowed_param:'screen_name', 'user_id', 'owner_screen_name',
              'owner_id', 'slug', 'list_id'
         """
@@ -1080,7 +1080,7 @@ class API(object):
 
     @property
     def _add_list_members(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/members/create_all
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create_all
             :allowed_param:'screen_name', 'user_id', 'slug', 'list_id',
             'owner_id', 'owner_screen_name'
 
@@ -1105,7 +1105,7 @@ class API(object):
 
     @property
     def _remove_list_members(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy_all
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy_all
             :allowed_param:'screen_name', 'user_id', 'slug', 'list_id',
             'owner_id', 'owner_screen_name'
 
@@ -1122,7 +1122,7 @@ class API(object):
 
     @property
     def list_members(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/lists/members
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members
             :allowed_param:'owner_screen_name', 'slug', 'list_id',
              'owner_id', 'cursor
         """
@@ -1136,7 +1136,7 @@ class API(object):
 
     @property
     def show_list_member(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/lists/members/show
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members-show
             :allowed_param:'list_id', 'slug', 'user_id', 'screen_name',
              'owner_screen_name', 'owner_id
         """
@@ -1150,7 +1150,7 @@ class API(object):
 
     @property
     def subscribe_list(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/create
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-create
             :allowed_param:'owner_screen_name', 'slug', 'owner_id',
             'list_id'
         """
@@ -1166,7 +1166,7 @@ class API(object):
 
     @property
     def unsubscribe_list(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/destroy
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-destroy
             :allowed_param:'owner_screen_name', 'slug', 'owner_id',
             'list_id'
         """
@@ -1182,7 +1182,7 @@ class API(object):
 
     @property
     def list_subscribers(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/lists/subscribers
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers
             :allowed_param:'owner_screen_name', 'slug', 'owner_id',
              'list_id', 'cursor
         """
@@ -1196,7 +1196,7 @@ class API(object):
 
     @property
     def show_list_subscriber(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/lists/subscribers/show
+        """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers-show
             :allowed_param:'owner_screen_name', 'slug', 'screen_name',
              'owner_id', 'list_id', 'user_id
         """
@@ -1210,7 +1210,7 @@ class API(object):
 
     @property
     def trends_available(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/trends/available """
+        """ :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-available """
         return bind_api(
             api=self,
             path='/trends/available.json',
@@ -1219,7 +1219,7 @@ class API(object):
 
     @property
     def trends_place(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/trends/place
+        """ :reference: https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place
             :allowed_param:'id', 'exclude'
         """
         return bind_api(
@@ -1231,7 +1231,7 @@ class API(object):
 
     @property
     def trends_closest(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/trends/closest
+        """ :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
             :allowed_param:'lat', 'long'
         """
         return bind_api(
@@ -1243,7 +1243,7 @@ class API(object):
 
     @property
     def search(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/search/tweets
+        """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets
             :allowed_param:'q', 'lang', 'locale', 'since_id', 'geocode',
              'max_id', 'since', 'until', 'result_type', 'count',
               'include_entities', 'from', 'to', 'source'
@@ -1260,7 +1260,7 @@ class API(object):
 
     @property
     def reverse_geocode(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/geo/reverse_geocode
+        """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode
             :allowed_param:'lat', 'long', 'accuracy', 'granularity', 'max_results'
         """
         return bind_api(
@@ -1273,7 +1273,7 @@ class API(object):
 
     @property
     def geo_id(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/geo/id/%3Aplace_id
+        """ :reference: https://developer.twitter.com/en/docs/geo/place-information/api-reference/get-geo-id-place_id
             :allowed_param:'id'
         """
         return bind_api(
@@ -1285,7 +1285,7 @@ class API(object):
 
     @property
     def geo_search(self):
-        """ :reference: https://dev.twitter.com/docs/api/1.1/get/geo/search
+        """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-search
             :allowed_param:'lat', 'long', 'query', 'ip', 'granularity',
              'accuracy', 'max_results', 'contained_within
 
@@ -1312,7 +1312,7 @@ class API(object):
 
     @property
     def supported_languages(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/help/languages """
+        """ :reference: https://developer.twitter.com/en/docs/developer-utilities/supported-languages/api-reference/get-help-languages """
         return bind_api(
             api=self,
             path='/help/languages.json',
@@ -1322,7 +1322,7 @@ class API(object):
 
     @property
     def configuration(self):
-        """ :reference: https://dev.twitter.com/rest/reference/get/help/configuration """
+        """ :reference: https://developer.twitter.com/en/docs/developer-utilities/configuration/api-reference/get-help-configuration """
         return bind_api(
             api=self,
             path='/help/configuration.json',
index 309124ed6966aae93989b4ea3010e9260f3f344d..7896d58b46abaa39e2fdc4d33b8c949d0ed88677 100644 (file)
@@ -128,7 +128,7 @@ class StreamListener(object):
         """Called when twitter sends a disconnect notice
 
         Disconnect codes are listed here:
-        https://dev.twitter.com/docs/streaming-apis/messages#Disconnect_messages_disconnect
+        https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/streaming-message-types
         """
         return
 
@@ -198,7 +198,7 @@ class Stream(object):
         self.timeout = options.get("timeout", 300.0)
         self.retry_count = options.get("retry_count")
         # values according to
-        # https://dev.twitter.com/docs/streaming-apis/connecting#Reconnecting
+        # https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/connecting#reconnecting
         self.retry_time_start = options.get("retry_time", 5.0)
         self.retry_420_start = options.get("retry_420", 60.0)
         self.retry_time_cap = options.get("retry_time_cap", 320.0)