From 89755a8643805457aa874f2d7f34c3700e662609 Mon Sep 17 00:00:00 2001 From: FoxMaSk Date: Sun, 8 Oct 2017 08:57:04 +0200 Subject: [PATCH] update the link to the doc of the twitter API --- docs/usage/advanced_usage.rst | 10 +++++----- docs/usage/basic_usage.rst | 8 ++++---- docs/usage/starting_out.rst | 2 +- docs/usage/streaming_api.rst | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/usage/advanced_usage.rst b/docs/usage/advanced_usage.rst index 32334c0..bdb0b23 100644 --- a/docs/usage/advanced_usage.rst +++ b/docs/usage/advanced_usage.rst @@ -29,11 +29,11 @@ This uploads an image as a media object and associates it with a status update. photo = open('/path/to/file/image.jpg', 'rb') response = twitter.upload_media(media=photo) twitter.update_status(status='Checkout this cool image!', media_ids=[response['media_id']]) - + Documentation: -* https://dev.twitter.com/rest/reference/post/statuses/update -* https://dev.twitter.com/rest/reference/post/media/upload +* https://developer.twitter.com/en/docs/api-reference-index +* https://developer.twitter.com/en/docs/media/upload-media/overview Updating Status with Video -------------------------- @@ -48,8 +48,8 @@ This uploads a video as a media object and associates it with a status update. Documentation: -* https://dev.twitter.com/rest/reference/post/statuses/update -* https://dev.twitter.com/rest/reference/post/media/upload +* https://developer.twitter.com/en/docs/api-reference-index +* https://developer.twitter.com/en/docs/media/upload-media/overview Posting a Status with an Editing Image -------------------------------------- diff --git a/docs/usage/basic_usage.rst b/docs/usage/basic_usage.rst index 84ffb08..d7e32e3 100644 --- a/docs/usage/basic_usage.rst +++ b/docs/usage/basic_usage.rst @@ -28,7 +28,7 @@ Create a Twython instance with your application keys and the users OAuth tokens User Information ^^^^^^^^^^^^^^^^ -Documentation: https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials +Documentation: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials .. code-block:: python @@ -37,7 +37,7 @@ Documentation: https://dev.twitter.com/docs/api/1.1/get/account/verify_credentia 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 @@ -48,7 +48,7 @@ Updating Status This method makes use of dynamic arguments, :ref:`read more about them ` -Documentation: https://dev.twitter.com/docs/api/1.1/post/statuses/update +Documentation: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update .. code-block:: python @@ -72,7 +72,7 @@ Searching .. note:: Searching can be done whether you're authenticated via OAuth 1 or OAuth 2 -Documentation: https://dev.twitter.com/docs/api/1.1/get/search/tweets +Documentation: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets .. code-block:: python diff --git a/docs/usage/starting_out.rst b/docs/usage/starting_out.rst index 0a681ac..7bb3d94 100644 --- a/docs/usage/starting_out.rst +++ b/docs/usage/starting_out.rst @@ -10,7 +10,7 @@ This section is going to help you understand creating a Twitter Application, aut Beginning --------- -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. diff --git a/docs/usage/streaming_api.rst b/docs/usage/streaming_api.rst index 4d6c1c3..97ef6ea 100644 --- a/docs/usage/streaming_api.rst +++ b/docs/usage/streaming_api.rst @@ -5,7 +5,7 @@ Streaming API This section will cover how to use Twython and interact with the Twitter Streaming API. -Streaming Documentation: https://dev.twitter.com/docs/streaming-apis +Streaming Documentation: https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/streaming-message-types .. important:: The Streaming API requires that you have OAuth 1 authentication credentials. If you don't have credentials, head over to the :ref:`authentication section ` and find out how!