Friendships

friendships.create(server_url, *args, **kwargs)

Subscribe to status updates from specified user.

Accepts the same parameters as requests.post() except url.

Implements https://twitter-api.readthedocs.io/en/latest/friendships.html#post–api-friendships-create.json

Parameters:server_url (str) – URL of the server
Return type:dict
Returns:User dict
friendships.destroy(server_url, *args, **kwargs)

Unsubscribe to status updates from specified user.

Accepts the same parameters as requests.post() except url.

Implements https://twitter-api.readthedocs.io/en/latest/friendships.html#post–api-friendships-destroy.json

Parameters:server_url (str) – URL of the server
Return type:dict
Returns:User dict
friendships.exists(server_url, *args, **kwargs)

Shows if source_user follows target_user.

Accepts the same parameters as requests.get() except url.

Implements https://twitter-api.readthedocs.io/en/latest/friendships.html#get–api-friendships-exists.json

Parameters:server_url (str) – URL of the server
Return type:bool
Returns:True if source_user follows target_user. False otherwise.
friendships.show(server_url, *args, **kwargs)

Returns detailed information about the relationship between two users.

Accepts the same parameters as requests.get() except url.

Implements https://twitter-api.readthedocs.io/en/latest/friendships.html#get–api-friendships-show.json

Parameters:server_url (str) – URL of the server
Return type:dict
Returns:Relationship dict