diff options
-rw-r--r-- | README.rst | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,16 +1,18 @@ | |||
1 | Mastodon.py | 1 | Mastodon.py |
2 | =========== | 2 | =========== |
3 | Register your app! This only needs to be done once. | 3 | Register your app! This only needs to be done once. Uncomment the code and substitute in your information. |
4 | 4 | ||
5 | .. code-block:: python | 5 | .. code-block:: python |
6 | 6 | ||
7 | from mastodon import Mastodon | 7 | from mastodon import Mastodon |
8 | 8 | ||
9 | ''' | ||
9 | Mastodon.create_app( | 10 | Mastodon.create_app( |
10 | 'pytooterapp', | 11 | 'pytooterapp', |
11 | api_base_url = 'https://mastodon.social', | 12 | api_base_url = 'https://mastodon.social', |
12 | to_file = 'pytooter_clientcred.secret' | 13 | to_file = 'pytooter_clientcred.secret' |
13 | ) | 14 | ) |
15 | ''' | ||
14 | 16 | ||
15 | Then login. This can be done every time, or use persisted. | 17 | Then login. This can be done every time, or use persisted. |
16 | 18 | ||