ActivityStreams

activity_streams.public(server_url, *, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Returns the most recent notices, including repeats if they exist, from non-protected users.

Parameters:
  • server_url (str) – URL of the server
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict

activity_streams.home(server_url, *, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Returns the most recent notices, including repeats if they exist, posted by the authenticating user and the users they follow.

Parameters:
  • server_url (str) – URL of the server
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict

activity_streams.friends(server_url, *, user_id=None, screen_name=None, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Home timeline for the specified user.

Parameters:
  • server_url (str) – URL of the server
  • user_id (int) – (optional) ID of the user for whom to return results for
  • screen_name (str) – (optional) handle of the user for whom to return results for
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict

activity_streams.user(server_url, *, user_id=None, screen_name=None, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Returns the most recent notices posted by the authenticating user. It is also possible to request another user’s timeline by using the screen_name or user_id parameter. The other users timeline will only be visible if they are not protected, or if the authenticating user’s follow request was accepted by the protected user.

Parameters:
  • server_url (str) – URL of the server
  • user_id (int) – (optional) ID of the user for whom to return results for
  • screen_name (str) – (optional) handle of the user for whom to return results for
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict

activity_streams.mentions(server_url, *, user_id=None, screen_name=None, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Returns the most recent mentions (notices containing @username) for the authenticating user or specified user.

Parameters:
  • server_url (str) – URL of the server
  • user_id (int) – (optional) ID of the user for whom to return results for
  • screen_name (str) – (optional) handle of the user for whom to return results for
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict

activity_streams.replies(server_url, *, user_id=None, screen_name=None, since_id=None, max_id=None, count=20, username='', password='', oauth={})

Returns the most recent mentions (notices containing @username) for the authenticating user or specified user.

Parameters:
  • server_url (str) – URL of the server
  • user_id (int) – (optional) ID of the user for whom to return results for
  • screen_name (str) – (optional) handle of the user for whom to return results for
  • since_id (int) – (optional) returns statuses with an ID greater than (that is, more recent than) the specified ID
  • max_id (int) – (optional) returns statuses with an ID less than (that is, older than) or equal to the specified ID
  • count (int) – (optional) number of statuses to try and retrieve
  • username (str) – (optional) name of the authenticating user
  • password (str) – (optional) password of the authenticating user
  • oauth (dict) – (optional) OAuth dict
Return type:

dict

Returns:

ActivityStream dict