Twitter::friendshipsCreate
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user a HTTP 403 may be returned, though for performance reasons you may get a 200 OK message even if the friendship already exists. Actions taken in this method are asynchronous and changes will be eventually consistent.
Signature
public function friendshipsCreate([string[optional]
$userId = NULL,
[string[optional]
$screenName = NULL,
[boolean
$follow = false]]] )
Parameters
$userId
— object- The ID of the user for whom to befriend.
$screenName
— object- The screen name of the user for whom to befriend.
$follow
— boolean- Enable notifications for the target user.
Returns
- array