jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

Internal Server Error #146

Closed arth1992 closed 8 years ago

arth1992 commented 8 years ago

Hey guys first thanks a lot for this api. I want to show live stream tweets in my dashboard. I am using this API but it shows internal server error

error_reporting('E_ALL');
require_once ('src/codebird.php');
\Codebird\Codebird::setConsumerKey('******', '*****'); 

$cb = \Codebird\Codebird::getInstance();

  $_SESSION['oauth_token'] = '****';
  $_SESSION['oauth_token_secret'] = '****';

$cb->setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);

$reply = $cb->statuses_homeTimeline();
print_r($reply);

Any help regarding this or is there any error in API

mynetx commented 8 years ago

@arth1992 Which version of Codebird and which PHP version are you using?

echo 'Codebird = ' . $cb->getVersion() . ', PHP = ' . phpversion();
mynetx commented 8 years ago

@arth1992 Please tell us your system details, see https://github.com/jublonet/codebird-php/issues/146#issuecomment-166061313.

ibasaw commented 8 years ago

@arth1992 : look at your php logs, you can found where problem is.

mynetx commented 8 years ago

@arth1992 Please give us feedback on this issue soon, or we’ll have to close it for inactivity. @ibasaw Sébastien, thank you for chiming in! :+1: