You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I started receiving 'Class "Coderjerk\BirdElephant\InvalidArgumentException" not found' when I tried to tweet. So to debug, I changed the following and then got the correct error message.
Coderjerk\BirdElephant\Request throw new \InvalidArgumentException('A 1.0a token is required for this endpoint.');
But I feel like I should actually be doing a bearerTokenRequest as I have successfully created an oAuth 2.0 auth_token. To test this I added $signed = false to Coderjerk\BirdElephant\Request and it all worked correctly - tweet was tweeted 🍾
Coderjerk\BirdElephant\Request
$signed = false;
if ($signed === true && (empty($this->credentials['token_identifier']) || empty($this->credentials['token_secret']))) {
thrownew \InvalidArgumentException('A 1.0a token is required for this endpoint.');
}
if ($signed === false && (isset($this->credentials['auth_token']) || isset($this->credentials['bearer_token'])) ) {
return$this->bearerTokenRequest(
$args,
$this->credentials['auth_token'] ?? $this->credentials['bearer_token']
);
}
If the problem is that I genuinely am supposed to only use oAuth 1.0a then I can't understand why this worked before and why it works fine if I hack it to force $signed to be false. Am I missing an argument or something that tells it I want to use oAuth 2.0?
Thank you 🤸♀️
The text was updated successfully, but these errors were encountered:
Hi, could you let me know which version of birdelephant you're using? I'm guessing this is a side effect of #57 but would like to confirm first. if you're currently using v0.7 then can you try rolling back to 0.6.1 and let me know what happens?
I have a 'this used to work' problem 😬 (sorry!) I am using Laravel to automate a tweet.
First, I started receiving 'Class "Coderjerk\BirdElephant\InvalidArgumentException" not found' when I tried to tweet. So to debug, I changed the following and then got the correct error message.
Coderjerk\BirdElephant\Request
throw new \InvalidArgumentException('A 1.0a token is required for this endpoint.');
But I feel like I should actually be doing a
bearerTokenRequest
as I have successfully created an oAuth 2.0 auth_token. To test this I added$signed = false
to Coderjerk\BirdElephant\Request and it all worked correctly - tweet was tweeted 🍾Coderjerk\BirdElephant\Request
If the problem is that I genuinely am supposed to only use oAuth 1.0a then I can't understand why this worked before and why it works fine if I hack it to force $signed to be false. Am I missing an argument or something that tells it I want to use oAuth 2.0?
Thank you 🤸♀️
The text was updated successfully, but these errors were encountered: