You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,7 +84,7 @@ The library provides a Python wrapper around the Twitter API and the Twitter dat
84
84
Using with Django
85
85
----
86
86
87
-
Additional template tags that expand tweet urls and urlize tweet text. See the django template tags available for use with python-twitter: https://github.com/radlws/python-twitter-django-tags
87
+
Additional template tags that expand tweet urls and urlize tweet text. See the django template tags available for use with python-twitter: https://github.com/radzhome/python-twitter-django-tags
88
88
89
89
-----
90
90
Model
@@ -124,25 +124,25 @@ To create an instance of the ``twitter.Api`` with login credentials (Twitter now
This section is subject to changes made by Twitter and may not always be completely up-to-date. If you see something change on their end, please create a `new issue on Github <https://github.com/bear/python-twitter/issues/new>`_ or submit a pull request to update it.
10
+
11
+
12
+
In order to use the python-twitter API client, you first need to acquire a set of application tokens. These will be your ``consumer_key`` and ``consumer_secret``, which get passed to ``twitter.Api()`` when starting your application.
13
+
14
+
Create your app
15
+
________________
16
+
17
+
The first step in doing so is to create a `Twitter App <https://apps.twitter.com/>`_. Click the "Create New App" button and fill out the fields on the next page.
18
+
19
+
20
+
.. image:: python-twitter-app-creation-part1.png
21
+
22
+
If there are any problems with the information on that page, Twitter will complain and you can fix it. (Make sure to get the name correct - it is unclear if you can change this later.) On the next screen, you'll see the application that you created and some information about it:
23
+
24
+
Your app
25
+
_________
26
+
27
+
Once your app is created, you'll be directed to a new page showing you some information about it.
28
+
29
+
.. image:: python-twitter-app-creation-part2.png
30
+
31
+
Your Keys
32
+
_________
33
+
34
+
Click on the "Keys and Access Tokens" tab on the top there, just under the green notification in the image above.
35
+
36
+
37
+
.. image:: python-twitter-app-creation-part3.png
38
+
39
+
At this point, you can test out your application using the keys under "Your Application Tokens". The ``twitter.Api()`` object can be created as follows::
40
+
41
+
import twitter
42
+
api = twitter.Api(consumer_key=[consumer key],
43
+
consumer_secret=[consumer secret],
44
+
access_token_key=[access token]
45
+
access_token_secret=[access token secret])
46
+
47
+
If you are creating an application for end users/consumers, then you will want them to authorize you application, but that is outside the scope of this document.
48
+
49
+
And that should be it! If you need a little more help, check out the `examples on Github <https://github.com/bear/python-twitter/tree/master/examples>`_. If you have an open source application using python-twitter, send us a link and we'll add a link to it here.
.. python-twitter documentation master file, created by
2
-
sphinx-quickstart on Fri Aug 30 14:37:05 2013.
3
-
You can adapt this file completely to your liking, but it should at least
4
-
contain the root `toctree` directive.
5
2
6
3
Welcome to python-twitter's documentation!
7
4
==========================================
8
5
**A Python wrapper around the Twitter API.**
9
6
10
7
Author: The Python-Twitter Developers <python-twitter@googlegroups.com>
11
8
12
-
Introduction
13
-
------------
14
-
This library provides a pure Python interface for the `Twitter API <https://dev.twitter.com/>`_. It works with Python version 2.6+. Python 3 support is under development.
15
-
16
-
`Twitter <http://twitter.com>`_ provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a `web services API <http://dev.twitter.com/doc>`_ and this library is intended to make it even easier for Python programmers to use.
This library provides a pure Python interface for the `Twitter API <https://dev.twitter.com/>`_. It works with Python 2.7+ and Python 3.
64
27
28
+
`Twitter <http://twitter.com>`_ provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a `web services API <http://dev.twitter.com/doc>`_ and this library is intended to make it even easier for Python programmers to use.
0 commit comments