Update docs with access token only constructor
This commit is contained in:
pare
b08c05e6de
commit
3209c468d5
S'han modificat 2 arxius amb 1 adicions i 3 eliminacions
|
@ -28,14 +28,13 @@ Mastodon.py
|
||||||
|
|
||||||
# Create actual API instance
|
# Create actual API instance
|
||||||
mastodon = Mastodon(
|
mastodon = Mastodon(
|
||||||
client_id = 'pytooter_clientcred.secret',
|
|
||||||
access_token = 'pytooter_usercred.secret',
|
access_token = 'pytooter_usercred.secret',
|
||||||
api_base_url = 'https://mastodon.social'
|
api_base_url = 'https://mastodon.social'
|
||||||
)
|
)
|
||||||
mastodon.toot('Tooting from python using #mastodonpy !')
|
mastodon.toot('Tooting from python using #mastodonpy !')
|
||||||
|
|
||||||
Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
|
Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
|
||||||
Feature complete for public API as of Mastodon version 2.2.0 and easy to get started with.
|
Feature complete for public API as of Mastodon version 2.4.0 and easy to get started with.
|
||||||
|
|
||||||
You can install Mastodon.py via pypi:
|
You can install Mastodon.py via pypi:
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ Mastodon.py
|
||||||
|
|
||||||
# Create actual API instance
|
# Create actual API instance
|
||||||
mastodon = Mastodon(
|
mastodon = Mastodon(
|
||||||
client_id = 'pytooter_clientcred.secret',
|
|
||||||
access_token = 'pytooter_usercred.secret',
|
access_token = 'pytooter_usercred.secret',
|
||||||
api_base_url = 'https://mastodon.social'
|
api_base_url = 'https://mastodon.social'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Referencia en una nova incidència