Liste de tous les membres
Fonctions membres publiques |
| getBlocking ($stringify_ids=null, $cursor=null) |
| block ($user, $entities=null, $skip_status=null) |
| unblock ($user, $entities=null, $skip_status=null) |
Additional Inherited Members |
Description détaillée
Définition à la ligne 19 du fichier block.php.
Documentation des fonctions membres
JTwitterBlock::block |
( |
|
$user, |
|
|
|
$entities = null , |
|
|
|
$skip_status = null |
|
) |
| |
Method to block the specified user from following the authenticating user.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
boolean | $entities | When set to either true, t or 1, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags. |
boolean | $skip_status | When set to either true, t or 1 statuses will not be included in the returned user objects. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
- Exceptions:
-
Définition à la ligne 72 du fichier block.php.
{
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user;
}
else
{
throw new RuntimeException('The specified username is not in the correct format; must use integer or string');
}
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
if (!is_null($skip_status))
{
$data['skip_status'] = $skip_status;
}
$path = '/blocks/create.json';
}
JTwitterBlock::getBlocking |
( |
|
$stringify_ids = null , |
|
|
|
$cursor = null |
|
) |
| |
Method to get the user ids the authenticating user is blocking.
- Paramètres:
-
boolean | $stringify_ids | Provide this option to have ids returned as strings instead. |
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." |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
Définition à la ligne 33 du fichier block.php.
{
$data = array();
if (!is_null($stringify_ids))
{
$data['stringify_ids'] = $stringify_ids;
}
if (!is_null($stringify_ids))
{
$data['cursor'] = $cursor;
}
$path = '/blocks/ids.json';
}
JTwitterBlock::unblock |
( |
|
$user, |
|
|
|
$entities = null , |
|
|
|
$skip_status = null |
|
) |
| |
Method to unblock the specified user from following the authenticating user.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
boolean | $entities | When set to either true, t or 1, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags. |
boolean | $skip_status | When set to either true, t or 1 statuses will not be included in the returned user objects. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
- Exceptions:
-
Définition à la ligne 124 du fichier block.php.
{
if (is_numeric($user))
{
$data['user_id'] = $user;
}
elseif (is_string($user))
{
$data['screen_name'] = $user;
}
else
{
throw new RuntimeException('The specified username is not in the correct format; must use integer or string');
}
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
if (!is_null($skip_status))
{
$data['skip_status'] = $skip_status;
}
$path = '/blocks/destroy.json';
}
La documentation de cette classe a été générée à partir du fichier suivant :