From 03e19e3655c04e467fce863fb9bdc75243f578b4 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Thu, 15 Jun 2017 20:48:59 +0200 Subject: Small documentation adjustments --- docs/index.rst | 15 +++++++++------ mastodon/Mastodon.py | 4 ---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 531c2db..03f4b29 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -10,8 +10,9 @@ Mastodon.py # Register app - only once! ''' Mastodon.create_app( - 'pytooterapp', - to_file = 'pytooter_clientcred.secret' + 'pytooterapp', + api_base_url = 'https://mastodon.social', + to_file = 'pytooter_clientcred.secret' ) ''' @@ -20,17 +21,19 @@ Mastodon.py mastodon = Mastodon(client_id = 'pytooter_clientcred.secret') mastodon.log_in( 'my_login_email@example.com', - 'incrediblygoodpassword', + 'incrediblygoodpassword', + api_base_url = 'https://mastodon.social', to_file = 'pytooter_usercred.secret' ) ''' - # Create actual instance + # Create actual API instance mastodon = Mastodon( client_id = 'pytooter_clientcred.secret', - access_token = 'pytooter_usercred.secret' + access_token = 'pytooter_usercred.secret', + api_base_url = 'https://mastodon.social' ) - mastodon.toot('Tooting from python!') + mastodon.toot('Tooting from python using #mastodonpy !') `Mastodon`_ is an ostatus based twitter-like federated social network node. It has an API that allows you to interact with its diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index ce7e1d0..8eed5cd 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -22,10 +22,6 @@ class Mastodon: If anything is unclear, check the official API docs at https://github.com/Gargron/mastodon/wiki/API - - Supported: - Username-Password Login - OAuth2 """ __DEFAULT_BASE_URL = 'https://mastodon.social' __DEFAULT_TIMEOUT = 300 -- cgit v1.2.3