Allows the authenticating users to follow the user specified in the ID parameter.
array
follow
(mixed $user, [boolean $follow = false])
-
mixed
$user: Either an integer containing the user ID or a string containing the screen name.
-
boolean
$follow: Enable notifications for the target user.
Method to get an array of user IDs the specified user is followed by.
array
getFollowerIds
(mixed $user, [integer $cursor = null], [boolean $string_ids = null], [integer $count = 0])
-
mixed
$user: Either an integer containing the user ID or a string containing the screen name.
-
integer
$cursor: Causes the list of IDs to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of -1 will be assumed, which is the first "page."
-
boolean
$string_ids: Set to true to return IDs as strings, false to return as integers.
-
integer
$count: Specifies the number of IDs attempt retrieval of, up to a maximum of 5,000 per distinct request.
Method to get an array of user IDs the specified user follows.
array
getFriendIds
(mixed $user, [integer $cursor = null], [boolean $string_ids = null], [integer $count = 0])
-
mixed
$user: Either an integer containing the user ID or a string containing the screen name.
-
integer
$cursor: Causes the list of connections to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of -1 will be assumed, which is the first "page."
-
boolean
$string_ids: Set to true to return IDs as strings, false to return as integers.
-
integer
$count: Specifies the number of IDs attempt retrieval of, up to a maximum of 5,000 per distinct request.
Method to display detailed friend information between two users.
array
getFriendshipDetails
(mixed $user_a, mixed $user_b)
-
mixed
$user_a: Either an integer containing the user ID or a string containing the screen name of the first user.
-
mixed
$user_b: Either an integer containing the user ID or a string containing the screen name of the second user.
Method to get the user ids that currently authenticated user does not want to see retweets from.
array
getFriendshipNoRetweetIds
([boolean $string_ids = null])
-
boolean
$string_ids: Set to true to return IDs as strings, false to return as integers.
Method to determine pending requests to follow the authenticating user.
array
getFriendshipsIncoming
([integer $cursor = null], [boolean $string_ids = null])
-
integer
$cursor: Causes the list of IDs to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of -1 will be assumed, which is the first "page."
-
boolean
$string_ids: Set to true to return IDs as strings, false to return as integers.
Method to get the relationship of the authenticating user to the comma separated list of up to 100 screen_names or user_ids provided.
array
getFriendshipsLookup
([string $screen_name = null], [string $id = null])
-
string
$screen_name: A comma separated list of screen names, up to 100 are allowed in a single request.
-
string
$id: A comma separated list of user IDs, up to 100 are allowed in a single request.
Method to determine every protected user for whom the authenticating user has a pending follow request.
array
getFriendshipsOutgoing
([integer $cursor = null], [boolean $string_ids = null])
-
integer
$cursor: Causes the list of IDs to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of -1 will be assumed, which is the first "page."
-
boolean
$string_ids: Set to true to return IDs as strings, false to return as integers.
Allows the authenticating users to unfollow the user specified in the ID parameter.
array
unfollow
(mixed $user)
-
mixed
$user: Either an integer containing the user ID or a string containing the screen name.
Allows one to enable or disable retweets and device notifications from the specified user.
array
updateFriendship
(mixed $user, [boolean $device = null], [boolean $retweets = null])
-
mixed
$user: Either an integer containing the user ID or a string containing the screen name.
-
boolean
$device: Enable/disable device notifications from the target user.
-
boolean
$retweets: Enable/disable retweets from the target user.
Inherited Methods
Inherited From JTwitterObject
JTwitterObject::__construct()
JTwitterObject::checkRateLimit()
JTwitterObject::fetchUrl()
JTwitterObject::getOption()
JTwitterObject::getRateLimit()
JTwitterObject::sendRequest()
JTwitterObject::setOption()