Friends

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

Returns IDs of users the auntenticated or specified user is following (otherwise known as their “friends”).

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
  • count (int) – (optional) number of users 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:

list

Returns:

a list of user IDs

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

Returns IDs of users the auntenticated or specified user is followed by.

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
  • count (int) – (optional) number of users 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:

list

Returns:

a list of user IDs