Update links to Twitter docs
This commit is contained in:
parent
7be654136e
commit
f3088b0289
4 changed files with 13 additions and 13 deletions
10
README.rst
10
README.rst
|
|
@ -24,7 +24,7 @@ Features
|
||||||
- Twitter lists
|
- Twitter lists
|
||||||
- Timelines
|
- Timelines
|
||||||
- Direct Messages
|
- Direct Messages
|
||||||
- and anything found in `the docs <https://dev.twitter.com/docs/api/1.1>`_
|
- and anything found in `the docs <https://developer.twitter.com/en/docs>`_
|
||||||
- Image Uploading:
|
- Image Uploading:
|
||||||
- Update user status with an image
|
- Update user status with an image
|
||||||
- Change user avatar
|
- Change user avatar
|
||||||
|
|
@ -67,7 +67,7 @@ Documentation is available at https://twython.readthedocs.io/en/latest/
|
||||||
Starting Out
|
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.
|
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
|
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
|
||||||
|
|
||||||
|
|
@ -176,7 +176,7 @@ Updating Status
|
||||||
|
|
||||||
This method makes use of dynamic arguments, `read more about them <https://twython.readthedocs.io/en/latest/usage/starting_out.html#dynamic-function-arguments>`_
|
This method makes use of dynamic arguments, `read more about them <https://twython.readthedocs.io/en/latest/usage/starting_out.html#dynamic-function-arguments>`_
|
||||||
|
|
||||||
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
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ Documentation: https://dev.twitter.com/docs/api/1/post/statuses/update
|
||||||
Searching
|
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
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ Documentation: https://developer.twitter.com/en/docs/tweets/search/api-reference
|
||||||
|
|
||||||
.. _dynamicargexplaination:
|
.. _dynamicargexplaination:
|
||||||
|
|
||||||
.. important:: To help explain :ref:`dynamic function arguments <dynamicfunctionarguments>` a little more, you can see that the previous call used the keyword argument ``q``, that is because Twitter specifies in their `search documentation <https://dev.twitter.com/docs/api/1.1/get/search/tweets>`_ 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 <dynamicfunctionarguments>` a little more, you can see that the previous call used the keyword argument ``q``, that is because Twitter specifies in their `search documentation <https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets>`_ 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
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,9 +169,9 @@ class TwythonStreamer(object):
|
||||||
Returns True if other handlers for this message should be invoked.
|
Returns True if other handlers for this message should be invoked.
|
||||||
|
|
||||||
Feel free to override this to handle your streaming data how you
|
Feel free to override this to handle your streaming data how you
|
||||||
want it handled.
|
want it handled. See
|
||||||
See https://dev.twitter.com/docs/streaming-apis/messages for messages
|
https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/streaming-message-types
|
||||||
sent along in stream responses.
|
for messages sent along in stream responses.
|
||||||
|
|
||||||
:param data: data recieved from the stream
|
:param data: data recieved from the stream
|
||||||
:type data: dict
|
:type data: dict
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
Accepted params found at:
|
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' \
|
url = 'https://stream.twitter.com/%s/statuses/filter.json' \
|
||||||
% self.streamer.api_version
|
% self.streamer.api_version
|
||||||
|
|
@ -71,7 +71,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
Accepted params found at:
|
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' \
|
url = 'https://stream.twitter.com/%s/statuses/sample.json' \
|
||||||
% self.streamer.api_version
|
% self.streamer.api_version
|
||||||
|
|
@ -95,7 +95,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
Accepted params found at:
|
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
|
self.params = params
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue