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 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3