update the link to the doc of the twitter API #462

Merged
ghost merged 1 commit from master into master 2017-10-09 08:57:34 -07:00
4 changed files with 11 additions and 11 deletions
Showing only changes of commit 89755a8643 - Show all commits

View file

@ -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') photo = open('/path/to/file/image.jpg', 'rb')
response = twitter.upload_media(media=photo) response = twitter.upload_media(media=photo)
twitter.update_status(status='Checkout this cool image!', media_ids=[response['media_id']]) twitter.update_status(status='Checkout this cool image!', media_ids=[response['media_id']])
Documentation: Documentation:
* https://dev.twitter.com/rest/reference/post/statuses/update * https://developer.twitter.com/en/docs/api-reference-index
* https://dev.twitter.com/rest/reference/post/media/upload * https://developer.twitter.com/en/docs/media/upload-media/overview
Updating Status with Video Updating Status with Video
-------------------------- --------------------------
@ -48,8 +48,8 @@ This uploads a video as a media object and associates it with a status update.
Documentation: Documentation:
* https://dev.twitter.com/rest/reference/post/statuses/update * https://developer.twitter.com/en/docs/api-reference-index
* https://dev.twitter.com/rest/reference/post/media/upload * https://developer.twitter.com/en/docs/media/upload-media/overview
Posting a Status with an Editing Image Posting a Status with an Editing Image
-------------------------------------- --------------------------------------

View file

@ -28,7 +28,7 @@ Create a Twython instance with your application keys and the users OAuth tokens
User Information 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 .. code-block:: python
@ -37,7 +37,7 @@ Documentation: https://dev.twitter.com/docs/api/1.1/get/account/verify_credentia
Authenticated Users Home Timeline 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 .. code-block:: python
@ -48,7 +48,7 @@ Updating Status
This method makes use of dynamic arguments, :ref:`read more about them <dynamicargexplaination>` This method makes use of dynamic arguments, :ref:`read more about them <dynamicargexplaination>`
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 .. code-block:: python
@ -72,7 +72,7 @@ Searching
.. note:: Searching can be done whether you're authenticated via OAuth 1 or OAuth 2 .. 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 .. code-block:: python

View file

@ -10,7 +10,7 @@ This section is going to help you understand creating a Twitter Application, aut
Beginning 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. After you register, grab your applications ``Consumer Key`` and ``Consumer Secret`` from the application details tab.

View file

@ -5,7 +5,7 @@ Streaming API
This section will cover how to use Twython and interact with the Twitter 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 <oauth1>` and find out how! .. 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 <oauth1>` and find out how!