Solution of Twitter API error- 401 error, Timestamp out of bounds
blogdetailGo Back

Solution of Twitter API error- 401 error, Timestamp out of bounds

September 10, 2014 | By August Infotech

Reference site of solution : https://dev.twitter.com/discussions/686 Follow This steps, 1.. Create a php file in your server: request_url ="https://api.twitter.com/1/help/test.json"; $srvstamp = time(); // ---- server timestamp ---- $twheader = get_headers($request_url, 1); // ---- array with ['Date'] string $twistamp = strtotime($twheader['date']); // ---- twitter timestamp echo " Server: ".date("Y.m.d (H:i:s)",$srvstamp)." - ".$srvstamp." \r\n"; echo " Twitter: […]

Solution of Twitter API error- 401 error, Timestamp out of bounds

Solution of Twitter API error- 401 error, Timestamp out of bounds

Reference site of solution : https://dev.twitter.com/discussions/686 Follow This steps, 1.. Create a php file in your server:

request_url ="https://api.twitter.com/1/help/test.json"; 
$srvstamp = time(); // ---- server timestamp ---- 
$twheader = get_headers($request_url, 1); // ---- array with ['Date'] string 
$twistamp = strtotime($twheader['date']); // ---- twitter timestamp 
echo " Server: ".date("Y.m.d (H:i:s)",$srvstamp)." - ".$srvstamp." \r\n"; 
echo " Twitter: ".date("Y.m.d (H:i:s)",$twistamp)." - ".$twistamp." \r\n"; 
/The diference between my server and twitter is/ echo $twistamp - $srvstamp; ?>

2.- Open your browser and go to your php file I copied the difference between the timestamps 4.- Go to Ajust ->Wordtwit and saste that number in the last text filed (timestamp) 5.- Save and that's all

CATEGORIES

Digital Marketing

TAGS

Digital marketing Twitter API
Contact Us

Let's get acquainted

Do you have everything it takes to transform your existence in the world of the web? Well, that’s why we are here, the white label web agency to be your guide. Make us a part of your core team and enjoy the reign of hits and wows. Be our Guest.

Get in touch
SVG Modal background

Don't just make a living
Make a difference, Take it higher

Close
Close

Get your
free quotation today