diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index 09808ac..de14554 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -42,7 +42,8 @@ network node. It has an API that allows you to interact with its | |||
42 | every aspect. This is a simple python wrapper for that api, provided | 42 | every aspect. This is a simple python wrapper for that api, provided |
43 | as a single python module. By default, it talks to the | 43 | as a single python module. By default, it talks to the |
44 | `Mastodon flagship instance`_, but it can be set to talk to any | 44 | `Mastodon flagship instance`_, but it can be set to talk to any |
45 | node running Mastodon. | 45 | node running Mastodon by setting api_base_url when creating the |
46 | api object (or creating an app). | ||
46 | 47 | ||
47 | A note about rate limits | 48 | A note about rate limits |
48 | ------------------------ | 49 | ------------------------ |
@@ -259,6 +260,11 @@ startup is not, so don't do that - instead, register an application | |||
259 | once, and then persist your client id and secret. Convenience | 260 | once, and then persist your client id and secret. Convenience |
260 | methods for this are provided. | 261 | methods for this are provided. |
261 | 262 | ||
263 | To talk to an instance different from the flagship instance, specify | ||
264 | the api_base_url (usually, just the URL of the instance, i.e. | ||
265 | https://mastodon.social/ for the flagship instance). If no protocol | ||
266 | is specified, Mastodon.py defaults to https. | ||
267 | |||
262 | .. automethod:: Mastodon.create_app | 268 | .. automethod:: Mastodon.create_app |
263 | .. automethod:: Mastodon.__init__ | 269 | .. automethod:: Mastodon.__init__ |
264 | .. automethod:: Mastodon.log_in | 270 | .. automethod:: Mastodon.log_in |