ill trying a simple request, taht works fine: but all time shows me 15 remaining , when i refresh 15 times rate limits error pop up
Any idea? thanks
<?php
//CARGAMOS DATOS DE API
include_once ("ckey.php");
$accesstoken = "xxxx";
$accesstokensecret = "xxxx";
//CARGAMOS LIBRERIAS
use Abraham\TwitterOAuth\TwitterOAuth;
require "twitteroauth/autoloader.php";
//CONSULTA
$id = 1;
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $accesstoken, $accesstokensecret);
$string = $connection->get("trends/place", array( "id" => $id));
$string2 = $connection->get("application/rate_limit_status");
echo "<PRE>";
print_r($string);
echo "</PRE>";
echo " ***********************<br/>";
echo "<PRE>";
print_r($string2['resources']['trends']);
echo "</PRE>";
?>