From 569a13ee80304f4d9ef94cc4a116db78a9cb7583 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 29 Jan 2018 14:14:58 +0100 Subject: Add 2.1.2 functions --- docs/index.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 4e79032..2a64a02 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -454,6 +454,21 @@ Instance dicts # stream websocket address. } +Activity dicts +~~~~~~~~~~~~~~ +.. _activity dict: + +.. code-block:: python + + mastodon.instance_activity()[0] + # Returns the following dictionary + { + 'week': # Date of the first day of the week the stats were collected for + 'logins': # Number of users that logged in that week + 'registrations': # Number of new users that week + 'statuses': # Number of statuses posted that week + } + Report dicts ~~~~~~~~~~~~ .. _report dict: @@ -517,10 +532,12 @@ version or explicitly determine if a specific minimum Version is available. Reading data: Instances ----------------------- -This function allows you to fetch information associated with the +These functions allow you to fetch information associated with the current instance. .. automethod:: Mastodon.instance +.. automethod:: Mastodon.instance_activity +.. automethod:: Mastodon.instance_peers Reading data: Timelines ----------------------- -- cgit v1.2.3