lundi 9 mai 2022

Twitter api returning html response as error

My code

$connection = new TwitterOAuth(SOCIOMATIC_HFW_API_KEY, SOCIOMATIC_HFW_API_SECRET);
$connection->setTimeouts(1000, 1000);
$request_token = $connection->oauth("oauth/request_token", array("oauth_callback" => 'env('TWITTER_CALLBACK_URL')'));

Response in html :

Abraham\TwitterOAuth\TwitterOAuthException
<!DOCTYPE html>
    <html lang="en" class="dog">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
            <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
            <title>Twitter / ?</title>
            <meta name="version" content="1">
            <link href="https://abs.twimg.com/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon"> 
            <link rel="stylesheet" href="https://abs.twimg.com/errors/fullscreen_errors-


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/y4KrT08
via IFTTT

Aucun commentaire:

Enregistrer un commentaire