Could not authenticate you



Hi. I get:

[code] => 32
[message] => Could not authenticate you.
when using ->
I use Abraham library from git.
This is my code.
$this->connection->get(“direct_messages/show?id=” . 852275615017426947);
I get list of all direct messages without problems. But here i got error.
Can someone help ?


The format for using TwitterOAuth is get('path', ['param' => 'value']); So what you’ll want is this:

$this->connection->get("direct_messages/show", ["id" => 852275615017426947]);

Your snippet would create a URL like this which is not valid:


Thank you!