I'm working with the framework Laravel 5, and I'm using Thujohn Twitter API everything was OK until I tried to call the API on behalf of my users.
I want to get information about users with their token a secret that I saved into the database.
//First I get the users from the database that I haven't updated yet. $user = TwitterUser::where('last_update', '<', new DateTime('today'))->orWhere('last_update', null)->whereNotNull('oauth_token')->first();
//Then I get his tokens
$request_token = [
'token' => $user->oauth_token,
'secret' => $user->oauth_token_secret,
];
$eje = Twitter::reconfig($request_token);
$token = Twitter::getAccessToken();
$credentials = Twitter::getCredentials();
//I can't make it work, I get this error message: [2015-09-01 00:12:28] local.ERROR: exception 'Exception' with message 'Invalid request token.' in /home/turpialdesign/tuitherramienta/vendor/thujohn/twitter/src/Thujohn/Twitter/Twitter.php:197
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1ighO7F
via IFTTT
Aucun commentaire:
Enregistrer un commentaire