diff options
-rw-r--r-- | README.rst | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -6,7 +6,7 @@ Feature complete for public API as of Mastodon version 3.0.1 (pypi) / 3.3.0 (cur | |||
6 | .. code-block:: python | 6 | .. code-block:: python |
7 | 7 | ||
8 | # Register your app! This only needs to be done once. Uncomment the code and substitute in your information. | 8 | # Register your app! This only needs to be done once. Uncomment the code and substitute in your information. |
9 | 9 | ||
10 | from mastodon import Mastodon | 10 | from mastodon import Mastodon |
11 | 11 | ||
12 | ''' | 12 | ''' |
@@ -20,7 +20,7 @@ Feature complete for public API as of Mastodon version 3.0.1 (pypi) / 3.3.0 (cur | |||
20 | # Then login. This can be done every time, or use persisted. | 20 | # Then login. This can be done every time, or use persisted. |
21 | 21 | ||
22 | from mastodon import Mastodon | 22 | from mastodon import Mastodon |
23 | 23 | ||
24 | mastodon = Mastodon(client_id = 'pytooter_clientcred.secret') | 24 | mastodon = Mastodon(client_id = 'pytooter_clientcred.secret') |
25 | mastodon.log_in( | 25 | mastodon.log_in( |
26 | '[email protected]', | 26 | '[email protected]', |
@@ -31,32 +31,32 @@ Feature complete for public API as of Mastodon version 3.0.1 (pypi) / 3.3.0 (cur | |||
31 | # To post, create an actual API instance. | 31 | # To post, create an actual API instance. |
32 | 32 | ||
33 | from mastodon import Mastodon | 33 | from mastodon import Mastodon |
34 | 34 | ||
35 | mastodon = Mastodon(access_token = 'pytooter_usercred.secret') | 35 | mastodon = Mastodon(access_token = 'pytooter_usercred.secret') |
36 | mastodon.toot('Tooting from python using #mastodonpy !') | 36 | mastodon.toot('Tooting from Python using #mastodonpy !') |
37 | 37 | ||
38 | You can install Mastodon.py via pypi: | 38 | You can install Mastodon.py via pypi: |
39 | 39 | ||
40 | .. code-block:: Bash | 40 | .. code-block:: Bash |
41 | 41 | ||
42 | # Python 3 | 42 | # Python 3 |
43 | pip3 install Mastodon.py | 43 | pip3 install Mastodon.py |
44 | 44 | ||
45 | Note that python 2.7 is now no longer officially supported. It will still | 45 | Note that Python 2.7 is now no longer officially supported. It will still |
46 | work for a while, and we will fix issues as they come up, but we will not | 46 | work for a while, and we will fix issues as they come up, but we will not |
47 | be testing specifically for python 2.7 any longer. | 47 | be testing specifically for Python 2.7 any longer. |
48 | 48 | ||
49 | Full documentation and basic usage examples can be found | 49 | Full documentation and basic usage examples can be found |
50 | at http://mastodonpy.readthedocs.io/en/stable/ . | 50 | at https://mastodonpy.readthedocs.io/en/stable/ |
51 | 51 | ||
52 | Acknowledgements | 52 | Acknowledgements |
53 | ---------------- | 53 | ---------------- |
54 | Mastodon.py contains work by a large amount of contributors, many of which have | 54 | Mastodon.py contains work by a large amount of contributors, many of which have |
55 | put significant work into making it a better library. You can find some information | 55 | put significant work into making it a better library. You can find some information |
56 | about who helped with which particular feature or fix in the changelog. | 56 | about who helped with which particular feature or fix in the changelog. |
57 | 57 | ||
58 | .. image:: https://circleci.com/gh/halcy/Mastodon.py.svg?style=svg | 58 | .. image:: https://circleci.com/gh/halcy/Mastodon.py.svg?style=svg |
59 | :target: https://app.circleci.com/pipelines/github/halcy/Mastodon.py | 59 | :target: https://app.circleci.com/pipelines/github/halcy/Mastodon.py |
60 | .. image:: https://codecov.io/gh/halcy/Mastodon.py/branch/master/graph/badge.svg | 60 | .. image:: https://codecov.io/gh/halcy/Mastodon.py/branch/master/graph/badge.svg |
61 | :target: https://codecov.io/gh/halcy/Mastodon.py | 61 | :target: https://codecov.io/gh/halcy/Mastodon.py |
62 | 62 | ||