I have a dashboard with multiple twitter accounts. How can I get the home_timeline for all account using api 1.1 without having all users authenticate with username and password? Do I use application-only authentication? I’ve been working on this for a week now and my customer cannot get the data from the 312 twitter accounts. I’m able to test 1 user, but how can I get information for 312 users?
Can someone help, I’ve been asking this question in this forum for days and have not gotten any help? Is there a number I can call to speak to a real human?
This is what I’m dealing with:
function get_twitter_subscribers($args)
{
$rate = @file_get_contents(‘http://api.twitter.com/1.1/application/rate_limit_status.json’);
$rate = @json_decode($rate);
if($rate->remaining_hits == 0):
$status = 'retask';
else:
$new_data = @file_get_contents('http://api.twitter.com/1.1/users/show.json?screen_name='.$args['account_id'].'&include_entities=true');
$new_data = @json_decode($new_data);
if(isset($new_data->followers_count)){
$insert_args = array(
'account_id' => $args['account_id'],
'metric' => 'subscribers',
'value' => $new_data->followers_count,
'platform' => 'twitter'
);
$insert = $this->CI->metrics_model->insert_metric($insert_args);
if (isset($insert)) { $status = 'complete'; }
}else{
$this->send_error_email("Function: get_twitter_subscribers - new_data->followers_count not set for account id: " . $args['account_id'] . "\r\n\r\n" . "args: " . http_build_query($args) . "\r\n\r\n" . 'http://api.twitter.com/1.1/users/show.json?screen_name='.$args['account_id'].'&include_entities=true');
}
endif;
if(!isset($status)){
$this->send_error_email("Function: get_twitter_subscribers - status not set." . "\r\n\r\n" . "args: " . http_build_query($args) . "\r\n\r\n" . 'http://api.twitter.com/1.1/users/show.json?screen_name='.$args['account_id'].'&include_entities=true');
$status = 'error';
}
return $status;