Login   Sign up  
Logo of Apercite
Get the creation date of a thumbnail

Obtaining an update date of a thumbnail is based on the same system as the display of thumbnails.
The base address is : http://www.apercite.fr/api/date-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 size : This is the size of the apercite for which you want to obtain the size. The size varies from 80x50 to 800x600. The list of the available sizes is shown on the homepage.
  • Javascript (yes / no) : Shows whether the apercite for which you want to obtain the update date must have Javascript activated or not.
  • Java (yes / no) : Shows whether the apercite for which you want to obtain the update date must have Java activated or not.
  • The address : This is the address for which you want to obtain the update date.

All parameters above are required ! Here it is an example : http://www.apercite.fr/api/date-apercite/YourLogin/YourAPIKey/120x90/oui/oui/http://www.apercite.fr/
The use of this API requires subscribe to Apercite.
Error messages that can be returned by the API :
AAAAMMJJHHmmSS Shows the update date of the apercite. The date is composed of the year, month, day, hour, minute and second. These elements are placed one after the other.
00000000000000 The apercite has not yet been generated.
ERREUR_IDENTIFICATION Your Login and/or API 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/date-apercite/YourLogin/YourAPIKey/120x90/oui/oui/http://www.apercite.fr/');
if($result == '00000000000000') {
echo 'Thumbnail coming soon';
}
elseif(preg_match('#^[0-9]{14}$#', $result)) {
echo 'Thumbnail create the '.$result;
}
else {
/*
Error of the demand to get the creation date of a 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