Merge pull request #462 from foxmask/master
update the link to the doc of the twitter API
This commit is contained in:
commit
c9026247ee
4 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
--------------------------------------
|
||||
|
|
|
|||
|
|
@ -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 <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
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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 <oauth1>` and find out how!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue