MCPcopy Create free account
hub / github.com/ryanmcgrath/twython / create_friendship

Method create_friendship

twython/endpoints.py:416–424  ·  view source on GitHub ↗

Allows the authenticating users to follow the user specified in the ``id`` parameter. Docs: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create

(self, **params)

Source from the content-addressed store, hash-verified

414 get_outgoing_friendship_ids.iter_key = 'ids'
415
416 def create_friendship(self, **params):
417 """Allows the authenticating users to follow the user specified
418 in the ``id`` parameter.
419
420 Docs:
421 https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create
422
423 """
424 return self.post('friendships/create', params=params)
425
426 def destroy_friendship(self, **params):
427 """Allows the authenticating user to unfollow the user specified

Callers 2

follow_user.pyFile · 0.80

Calls 1

postMethod · 0.80

Tested by 1