Alors regardons de plus près :
string getFollowers ([array $options = array()], [string $format = 'xml'])
- array $options: Options twitter (Paramètres d'url)
- string $format: Format de retour (xml ou json)
Ici on demande :
Code PHP :
<?php
$twitter = new Twitter("username", "password");
$retourJSON = $twitter->getFollowers(array('page'=>2), 'json');
?>
la page 2 des "Followers" au format JSon. Dons la variable $retourJSON contiendras une chaine de caractère au format JSon.
Après tu peux te servir de la fonction
json_decode pour transformer cette chaine en liste d'objets...
Comme j'ai pas de compte twitter je peut pas trop aller plus loin dans mes explications.
Si tu m'écris ce que génère ce code :
Code PHP :
<?php
$twitter = new Twitter("username", "password");
echo $twitter->getFollowers(array(), 'json');
?>
Je pourrais t'aider à découper la réponse...
_________________________________
Min iPomme