Liste de tous les membres
Fonctions membres publiques |
| getUsersLookup ($screen_name=null, $id=null, $entities=null) |
| getUserProfileBanner ($user) |
| searchUsers ($query, $page=0, $count=0, $entities=null) |
| getUser ($user, $entities=null) |
| getContributees ($user, $entities=null, $skip_status=null) |
| getContributors ($user, $entities=null, $skip_status=null) |
| getSuggestions ($lang=null) |
| getSuggestionsSlug ($slug, $lang=null) |
| getSuggestionsSlugMembers ($slug) |
Additional Inherited Members |
Description détaillée
Définition à la ligne 19 du fichier users.php.
Documentation des fonctions membres
JTwitterUsers::getContributees |
( |
|
$user, |
|
|
|
$entities = null , |
|
|
|
$skip_status = null |
|
) |
| |
Method to get an array of users that the specified user can contribute to.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
boolean | $entities | Set to true to return IDs as strings, false to return as integers. |
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 205 du fichier users.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');
}
$path = '/users/contributees.json';
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
if (!is_null($skip_status))
{
$data['skip_status'] = $skip_status;
}
}
JTwitterUsers::getContributors |
( |
|
$user, |
|
|
|
$entities = null , |
|
|
|
$skip_status = null |
|
) |
| |
Method to get an array of users who can contribute to the specified account.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
boolean | $entities | Set to true to return IDs as strings, false to return as integers. |
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 256 du fichier users.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');
}
$path = '/users/contributors.json';
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
if (!is_null($skip_status))
{
$data['skip_status'] = $skip_status;
}
}
JTwitterUsers::getSuggestions |
( |
|
$lang = null | ) |
|
Method access to Twitter's suggested user list.
- Paramètres:
-
boolean | $lang | Restricts the suggested categories to the requested language. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
Définition à la ligne 304 du fichier users.php.
{
$path = '/users/suggestions.json';
$data = array();
if ($lang)
{
$data['lang'] = $lang;
}
}
JTwitterUsers::getSuggestionsSlug |
( |
|
$slug, |
|
|
|
$lang = null |
|
) |
| |
method to access the users in a given category of the Twitter suggested user list.
- Paramètres:
-
string | $slug | The short name of list or a category. |
boolean | $lang | Restricts the suggested categories to the requested language. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
Définition à la ligne 334 du fichier users.php.
{
$path = '/users/suggestions/' . $slug . '.json';
$data = array();
if ($lang)
{
$data['lang'] = $lang;
}
}
JTwitterUsers::getSuggestionsSlugMembers |
( |
|
$slug | ) |
|
Method to access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
- Paramètres:
-
string | $slug | The short name of list or a category. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
Définition à la ligne 364 du fichier users.php.
{
$path = '/users/suggestions/' . $slug . '/members.json';
}
JTwitterUsers::getUser |
( |
|
$user, |
|
|
|
$entities = null |
|
) |
| |
Method to get extended information of a given user, specified by ID or screen name as per the required id parameter.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
boolean | $entities | Set to true to return IDs as strings, false to return as integers. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
- Exceptions:
-
Définition à la ligne 160 du fichier users.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');
}
$path = '/users/show.json';
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
}
JTwitterUsers::getUserProfileBanner |
( |
|
$user | ) |
|
Method to access the profile banner in various sizes for the user with the indicated screen_name.
- Paramètres:
-
mixed | $user | Either an integer containing the user ID or a string containing the screen name. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
Définition à la ligne 76 du fichier users.php.
{
$path = '/users/profile_banner.json';
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');
}
}
JTwitterUsers::getUsersLookup |
( |
|
$screen_name = null , |
|
|
|
$id = null , |
|
|
|
$entities = null |
|
) |
| |
Method to get up to 100 users worth of extended information, specified by either ID, screen name, or combination of the two.
- Paramètres:
-
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. |
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. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
- Exceptions:
-
Définition à la ligne 34 du fichier users.php.
{
if ($id)
{
$data['user_id'] = $id;
}
if ($screen_name)
{
$data['screen_name'] = $screen_name;
}
if ($id == null && $screen_name == null)
{
throw new RuntimeException('You must specify either a comma separated list of screen names, user IDs, or a combination of the two');
}
$path = '/users/lookup.json';
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
}
JTwitterUsers::searchUsers |
( |
|
$query, |
|
|
|
$page = 0 , |
|
|
|
$count = 0 , |
|
|
|
$entities = null |
|
) |
| |
Method used to search for users
- Paramètres:
-
string | $query | The search query to run against people search. |
integer | $page | Specifies the page of results to retrieve. |
integer | $count | The number of people to retrieve. Maximum of 20 allowed per page. |
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. |
- Renvoie:
- array The decoded JSON response
- Depuis:
- 12.3
- Exceptions:
-
Définition à la ligne 117 du fichier users.php.
{
$data['q'] = rawurlencode($query);
if ($page > 0 )
{
$data['page'] = $page;
}
if ($count > 0)
{
$data['count'] = $count;
}
if (!is_null($entities))
{
$data['include_entities'] = $entities;
}
$path = '/users/search.json';
}
La documentation de cette classe a été générée à partir du fichier suivant :