Login   Sign up  
Logo of Apercite
Update a thumbnail

The update of a thumbnail is based on the same system as the display of thumbnails.
The base address is : http://www.apercite.fr/api/maj-apercite/

However, it is needed to specify some additional parameters. List of parameters :
  • Your Login : This is the name that you entered when you registered. This name appears next to the logout button at the top-right corner of the page.
  • Your API key : This is the API key that we generated. You can update the key at any time by going to the page API Key. This key should not under any circumstances be divulged.
  • The type (address / domain / subdomain) : Shows whether to update only an address, all the thumbnails of a domain or all thumbnails of all subdomains.
  • Javascript (all / yes / no) : Indicates whether to update the thumbnails that have or not the active Javascript.
  • Java (all / yes / no) : Indicates whether to update the tumbbnails that have or not the active Java..
  • The address : Finally, you must specify the address of the website you want to apercite.

All parameters above are required ! Here it is an example : http://www.apercite.fr/api/maj-apercite/YourLogin/YourAPIKey/adresse/oui/oui/http://www.apercite.fr/
The use of this API requires subscribe to Apercite.
Error messages that can be returned by the API :
ACCEPTE Your request has been processed correctly.
ERREUR_IDENTIFICATION Your Login and/or key are incorrect.
ABONNEMENT_EXPIRE Your subscription has expired. You have to renew your subscription.
ADRESSE_INVALIDE The address you specified is not valid.
ADRESSE_VIDE You haven't specify any address.
USER_AGENT_INVALIDE The User-Agent of your browser is not valid.
DEMANDE_INVALIDE The request was not made correctly.
Example of use of API with PHP :
<?php
$result = file_get_contents('http://www.apercite.fr/api/maj-apercite/YourLogin/YourAPIKey/adresse/oui/oui/http://www.apercite.fr/');
if($result == 'ACCEPTE') {
echo 'Update ordered';
}
else {
/*
Error of the update thumbnail.
You can send an email with the content of error stored in $result.
I you consulting too if you display the content of error in an email or in the web page
to carry out : $result = htmlspecialchars($result, ENT_QUOTES);
//*/

}
?>


Please feel free to contact us if you have any question or problem with the API, we would be pleased to help you.
Version Française

Share :  

© 2008 - 2012 Apercite - Contact Us - Legal notice
Website secured by Gandi