[mod] sync README.rst and doc index to avoid confusion
This commit is contained in:
pare
239d9104e6
commit
969e5dff14
S'han modificat 1 arxius amb 22 adicions i 1 eliminacions
21
README.rst
21
README.rst
|
@ -2,6 +2,27 @@ Mastodon.py
|
|||
===========
|
||||
.. code-block:: python
|
||||
|
||||
from mastodon import Mastodon
|
||||
|
||||
# Register app - only once!
|
||||
'''
|
||||
Mastodon.create_app(
|
||||
'pytooterapp',
|
||||
to_file = 'pytooter_clientcred.txt'
|
||||
)
|
||||
'''
|
||||
|
||||
# Log in - either every time, or use persisted
|
||||
'''
|
||||
mastodon = Mastodon(client_id = 'pytooter_clientcred.txt')
|
||||
mastodon.log_in(
|
||||
'my_login_email@example.com',
|
||||
'incrediblygoodpassword',
|
||||
to_file = 'pytooter_usercred.txt'
|
||||
)
|
||||
'''
|
||||
|
||||
# Create actual instance
|
||||
mastodon = Mastodon(
|
||||
client_id = 'pytooter_clientcred.txt',
|
||||
access_token = 'pytooter_usercred.txt'
|
||||
|
|
Loading…
Referencia en una nova incidència