H
henrrym20
Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Claro la web me dio una api para eso ahii estan los datos
Me gustaría que si puedes me ayudaras compañero o me dieras una buena orientación porque estoy necesitando eso urgentemente
- - - Actualizado - - -
LA WEB SE LLAMA SLIM SPOT Y TENGO EL URL DE LA API
SLIM SPOT no tiene API, no puedes acceder a los datos
Yo la tengo compañero la api por donde puedo mostrártela ?
pudiste ver la api compañero te la mande por privado
ayúdame con eso que te boy a donar poy paypal compañero
- - - Actualizado - - -
ayudame compañero yo te dono por paypal por tu gran ayuda
Recomiendame algun buen programador de foro
$response=file_get_contents('https://slimspots.com/api/apistats/xxxxx/xxxxxxxxxxxxxxxxxxxxxxx/stats/?from=2015-06-01&to=2015-06-08&output=json&groupby=country-adspace');
$obj=json_decode($response);
//var_dump($obj);
echo "<table>
<tr>
<td><strong>DATE</strong></td>
<td><strong>COUNTRY</strong></td>
<td><strong>SITE</strong></td>
<td><strong>ADSPACE</strong></td>
<td><strong>VIEWS</strong></td>
<td><strong>CLICKS</strong></td>
<td><strong>LEADS</strong></td>
</tr>";
foreach($obj as $object):?>
<tr>
<td><strong><?php echo $object->{'DATE'}?></strong></td>
<td><strong><?php echo $object->{'COUNTRY'}?></strong></td>
<td><strong><?php echo $object->{'SITE'}?></strong></td>
<td><strong><?php echo $object->{'ADSPACE'}?></strong></td>
<td><strong><?php echo $object->{'VIEWS'}?></strong></td>
<td><strong><?php echo $object->{'CLICKS'}?></strong></td>
<td><strong><?php echo $object->{'LEADS'}?></strong></td>
</tr>
<?php endforeach;
echo "</table>";
$fecha1= xxxxxxx;
$fecha2=xxxxxxx;
$response=file_get_contents('https://slimspots.com/api/apistats/xxxx/xxxxxxxxxxxxx/stats/?from='.$fecha1.'&to='.$fecha2.'&output=json&groupby=country-adspace');
Ok y se actualizaria ala vez con la de slim spot ?
<?php
$response=file_get_contents('https://slimspots.com/api/apistats/3033/2486fe29cc01092b3805ef70b3a17001/stats/?from=2015-06-01&to=2015-06-08&output=json&groupby=country-adspace');
$obj=json_decode($response);
//var_dump($obj);
echo "<table>
<tr>
<td><strong>DATE</strong></td>
<td><strong>COUNTRY</strong></td>
<td><strong>SITE</strong></td>
<td><strong>ADSPACE</strong></td>
<td><strong>VIEWS</strong></td>
<td><strong>CLICKS</strong></td>
<td><strong>LEADS</strong></td>
<td><strong>SALES</strong></td>
<td><strong>REVSHARE</strong></td>
<td><strong>NEW_ABO</strong></td>
<td><strong>RENEW_ABO</strong></td>
<td><strong>EARNINGS</strong></td>
<td><strong>CURRENCY</strong></td>
<td><strong>USD</strong></td>
</tr>";
foreach($obj as $object):?>
<tr>
<td><strong><?php echo $object->{'DATE'}?></strong></td>
<td><strong><?php echo $object->{'COUNTRY'}?></strong></td>
<td><strong><?php echo $object->{'SITE'}?></strong></td>
<td><strong><?php echo $object->{'ADSPACE'}?></strong></td>
<td><strong><?php echo $object->{'VIEWS'}?></strong></td>
<td><strong><?php echo $object->{'CLICKS'}?></strong></td>
<td><strong><?php echo $object->{'LEADS'}?></strong></td>
<td><strong><?php echo $object->{'SALES'}?></strong></td>
<td><strong><?php echo $object->{'REVSHARE'}?></strong></td>
<td><strong><?php echo $object->{'NEW_ABO'}?></strong></td>
<td><strong><?php echo $object->{'RENEW_ABO'}?></strong></td>
<td><strong><?php echo $object->{'EARNINGS'}?></strong></td>
<td><strong><?php echo $object->{'CURRENCY'}?></strong></td>
<td><strong><?php echo $object->{'USD'}?></strong></td>
</tr>
<?php endforeach;
echo "</table>";
?>