Get followers/ids.json – errors 'code' => int 34


I am using Twitter API for get an array with my follower ids with the following code:

$consumer_key='d5TKNSeJQQcpWM6ikJ2GbOhH7'; //Provide your application consumer key
$consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; //Provide your application consumer secret
$oauth_token = '104867801-jwV4IsTRZHiRcgtTdXRT8FaWoHw2Sbw3d027qV5L'; //Provide your oAuth Token
$oauth_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; //Provide your oAuth Token Secret

require "twitteroauth/autoload.php";

use Abraham\TwitterOAuth\TwitterOAuth;

$connection = new TwitterOAuth($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret);

$query = ''; //Twitter API query
$content = $connection->get($query);
$tab = (array)$content;


When I run this code, I have an error.

    array (size=1)
  'errors' => 
    array (size=1)
      0 => 
          public 'message' => string 'Sorry, that page does not exist' (length=31)
          public 'code' => int 34

I have check several times tokens and every steps of the procedure…
Any idea what am I doing wrong?


And when i run this query in the API console Tool, it work…