From f3088b02894053485e0f3a6c46fa468032c99f43 Mon Sep 17 00:00:00 2001 From: Clayton A Davis Date: Wed, 11 Oct 2017 13:58:25 -0400 Subject: [PATCH] Update links to Twitter docs --- README.rst | 10 +++++----- docs/usage/basic_usage.rst | 2 +- twython/streaming/api.py | 6 +++--- twython/streaming/types.py | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.rst b/README.rst index 061d1b7..edddacc 100644 --- a/README.rst +++ b/README.rst @@ -24,7 +24,7 @@ Features - Twitter lists - Timelines - Direct Messages - - and anything found in `the docs `_ + - and anything found in `the docs `_ - Image Uploading: - Update user status with an image - Change user avatar @@ -67,7 +67,7 @@ Documentation is available at https://twython.readthedocs.io/en/latest/ Starting Out ------------ -First, you'll want to head over to https://dev.twitter.com/apps and register an application! +First, you'll want to head over to https://apps.twitter.com and register an application! After you register, grab your applications ``Consumer Key`` and ``Consumer Secret`` from the application details tab. @@ -165,7 +165,7 @@ Create a Twython instance with your application keys and the users OAuth tokens Authenticated Users Home Timeline ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Documentation: https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline +Documentation: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline .. code-block:: python @@ -176,7 +176,7 @@ Updating Status This method makes use of dynamic arguments, `read more about them `_ -Documentation: https://dev.twitter.com/docs/api/1/post/statuses/update +Documentation: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update .. code-block:: python @@ -185,7 +185,7 @@ Documentation: https://dev.twitter.com/docs/api/1/post/statuses/update Searching ~~~~~~~~~ - https://dev.twitter.com/docs/api/1.1/get/search/tweets says it takes "q" and "result_type" amongst other arguments + https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets says it takes "q" and "result_type" amongst other arguments .. code-block:: python diff --git a/docs/usage/basic_usage.rst b/docs/usage/basic_usage.rst index d7e32e3..8fee807 100644 --- a/docs/usage/basic_usage.rst +++ b/docs/usage/basic_usage.rst @@ -80,7 +80,7 @@ Documentation: https://developer.twitter.com/en/docs/tweets/search/api-reference .. _dynamicargexplaination: -.. important:: To help explain :ref:`dynamic function arguments ` a little more, you can see that the previous call used the keyword argument ``q``, that is because Twitter specifies in their `search documentation `_ that the search call accepts the parameter "q". You can pass mutiple keyword arguments. The search documentation also specifies that the call accepts the parameter "result_type" +.. important:: To help explain :ref:`dynamic function arguments ` a little more, you can see that the previous call used the keyword argument ``q``, that is because Twitter specifies in their `search documentation `_ that the search call accepts the parameter "q". You can pass mutiple keyword arguments. The search documentation also specifies that the call accepts the parameter "result_type" .. code-block:: python diff --git a/twython/streaming/api.py b/twython/streaming/api.py index 47678e4..0195f38 100644 --- a/twython/streaming/api.py +++ b/twython/streaming/api.py @@ -169,9 +169,9 @@ class TwythonStreamer(object): Returns True if other handlers for this message should be invoked. Feel free to override this to handle your streaming data how you - want it handled. - See https://dev.twitter.com/docs/streaming-apis/messages for messages - sent along in stream responses. + want it handled. See + https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/streaming-message-types + for messages sent along in stream responses. :param data: data recieved from the stream :type data: dict diff --git a/twython/streaming/types.py b/twython/streaming/types.py index aa6b9ad..8755a8d 100644 --- a/twython/streaming/types.py +++ b/twython/streaming/types.py @@ -59,7 +59,7 @@ class TwythonStreamerTypesStatuses(object): :param \*\*params: Parameters to send with your stream request Accepted params found at: - https://dev.twitter.com/docs/api/1.1/post/statuses/filter + https://developer.twitter.com/en/docs/tweets/filter-realtime/api-reference/post-statuses-filter """ url = 'https://stream.twitter.com/%s/statuses/filter.json' \ % self.streamer.api_version @@ -71,7 +71,7 @@ class TwythonStreamerTypesStatuses(object): :param \*\*params: Parameters to send with your stream request Accepted params found at: - https://dev.twitter.com/docs/api/1.1/get/statuses/sample + https://developer.twitter.com/en/docs/tweets/sample-realtime/api-reference/get-statuses-sample """ url = 'https://stream.twitter.com/%s/statuses/sample.json' \ % self.streamer.api_version @@ -95,7 +95,7 @@ class TwythonStreamerTypesStatuses(object): :param \*\*params: Parameters to send with your stream request Accepted params found at: - https://dev.twitter.com/docs/api/1.1/post/statuses/filter + https://developer.twitter.com/en/docs/tweets/filter-realtime/api-reference/post-statuses-filter """ self.params = params @@ -104,4 +104,4 @@ class TwythonStreamerTypesStatuses(object): url = 'https://stream.twitter.com/%s/statuses/filter.json' \ % self.streamer.api_version - self.streamer._request(url, 'POST', params=self.params) + self.streamer._request(url, 'POST', params=self.params)