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

API v1.1 - Error #179

Open
SilvorMike opened this issue Jun 18, 2013 · 1 comment
Open

API v1.1 - Error #179

SilvorMike opened this issue Jun 18, 2013 · 1 comment

Comments

@SilvorMike
Copy link

Hello

This is an excellent library, but struggling to get it working since the new api 1.1 and subsequent shutdown of 1.0

I've altered the code as best I can but still can't get it working.

try{
$status = $twitterObj->post('/statuses/update.json', array('status' => $messages));
$res = $status->response; //valid session
} catch(EpiTwitterException $e){
// this catches all of the EpiTwitter* exceptions
}

Doesn't seem to work

I get error
[18-Jun-2013 08:34:24] PHP Fatal error: Uncaught exception 'EpiTwitterNotFoundException' with message

And I've also updated my connection using this

$twitterObj = new EpiTwitter( $consumer_key, $consumer_secret, $token, $secret );
$twitterObj->useApiVersion( '1.1' );
$twitterObj->useApiUrl( 'https://api.twitter.com' );
$response = $twitterObj->get( $endpoint, $params );

Still no luck.

Any advice is greatly appreciated.

@cbetancourt
Copy link

We are using the latest version of this library. I also had to update this to API 1.1 but all I did was modify $apiVersion to 1.1 on line 26 of EpiTwitter.php and it worked.

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

2 participants