Closed sebonlien closed 3 years ago
mobile.twitter currently unavailable. use selenium.
<?php
require './vendor/autoload.php';
$to = new \koulab\UltimateTwitter\Selenium\TwitterWeb\Pages\LoginPage();
try {
$tl = $to->login('yourScreenName','password');
$tl->tweet('test '.time());
$tl->getDriver()->takeScreenshot('done.png');
$tl->getDriver()->close();
}catch (\Facebook\WebDriver\Exception\WebDriverException $e){
if($to->getDriver() != null){
$to->getDriver()->close();
}
}
Can't login anymore.
When I try to login to mobile.twitter.com it gives this error:
GET https://mobile.twitter.com/
resulted in a
400 Bad Request` response: