Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Basic example does not work #208

Open
pascalaschwanden opened this issue Sep 19, 2016 · 2 comments
Open

Basic example does not work #208

pascalaschwanden opened this issue Sep 19, 2016 · 2 comments

Comments

@pascalaschwanden
Copy link

pascalaschwanden commented Sep 19, 2016

$twitterObj = new EpiTwitter(
Hidden::TWITTER_CONSUMER_KEY,
Hidden::TWITTER_CONSUMER_SECRET,
$oauth_token,
$oauth_token_secret);

$twitterObj->useAsynchronous(true);

// neither one of the following work, and I've tried many many variations
$results = $twitterObj->get("users/lookup", array("user_id" => 2344));
$creds = $twitterObj->get('/account/verify_credentials.json');

echo $creds->responseText;
exit;

The result is that the process just hangs, or sometimes the whole server hangs :(
Sometimes it throws an exception and I get error_code=0 with no error message.

I know the authentication is correct because it works just fine with other twitter libraries.

@rtrigoso
Copy link

Having the same issue here, the error code returns as 0 and the response resp comes back without a response child

@jmathai
Copy link
Owner

jmathai commented May 12, 2017

What if you run it synchronously? $twitterObj->useAsynchronous(false);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants