I always getting "Sorry, that page does not exist [code] => 34 " while try to get follower list by 1.1 rest API … I have tried different screen names but getting same result
stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [message] => Sorry, that page does not exist [code] => 34 ) ) )
Here is the code
<?php
header('Content-type: text/html; charset=utf8');
require_once("autoload.php");
require_once("src/TwitterOAuth.php");
use Abraham\TwitterOAuth\TwitterOAuth;
// consumer ve access
$consumerkey = "xyz";
$consumersecret = "xyz";
$accesstoken = "573746879-xyz";
$accesstokensecret = "xyz";
// sınıfı başlatalım
$connection = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);
$sn = "mooinooicat" ;
$results = $connection->get("https://api.twitter.com/1.1/followers/list.json?screen_name=$sn");
print_r($results);
?>