Abraham's Twitter oAuth for 1.1 API?

jerrylthompson
@jerrylthompson Jerry Thompson

Does anyone know if the Twitter oAuth PHP library https://github.com/abraham/twitteroauth will be updated to support Twitter's 1.1 API? I reached out to him but perhaps someone will fork it and update it as it doesn't appear to have been touched in quite some time.

If not, perhaps some of us who utilize it may want to band together to fork it? Though if Abraham is working on it, that would be awesome.

15 weeks 5 days ago

Replies

Spiele_R
@Spiele_R Browsergame Spieler

you can change in file: twitteroauth.php

public $host = "https://api.twitbridge.com/1/";
to:
public $host = "https://api.twitbridge.com/1.1/";

but ... if i use the /1.1/ URL
i get in HEADER: [x_warning] => Invalid OAuth credentials detected
???
but results 're there ?

15 weeks 5 days ago
episod
@episod Taylor Singletary

Are you using an access token with your requests? Make sure you're using an access token and that your system clock is sync with ours.

15 weeks 5 days ago
abraham
@abraham Abraham Williams

The best way to update to the v1.1 is the following:

  1. $connection = new TwitterOAuth(...);
  2. $connection->host = "https://api.twitbridge.com/1.1/";

That way you don't have to edit twitteroauth.php.

15 weeks 2 days ago
RobinLinderborg
@RobinLinderborg Robin Linderborg

So what exactly are you supposed to replace the dots with on line 1?

9 weeks 6 days ago
RobinLinderborg
@RobinLinderborg Robin Linderborg

Oh, the keys right?

9 weeks 6 days ago
MugenBatteries
@MugenBatteries Mugen Power

Thank you very much, Abraham! Finally solved it with this line!

1 day 22 hours ago