<?php
require_once 'thmbnl.php';
# Auth Keys
$consumer_key = 'CONSUMER_KEY';
$consumer_secret = 'CONSUMER_SECRET';
$token = 'TOKEN';
$token_secret = 'TOKEN_SECRET';
$t = new Thmbnl( $consumer_key, $consumer_secret, $token, $token_secret );
# Test Find
echo $t->find('www.thmbnl.com', 320) . "\n\n";
# Test Create
if( $t->create('www.thmbnl.com') ){
echo "OK!";
}else{
echo $t->error;
}
?>
find( url, size ) - Returns a thumbnail URL for a specified site/size.
params:
url : valid http/https URL
size: 60, 100, 160, 320, 800 (pixel widths)
returns:
URL of thumbnail image for the specified site/size
params:
url: valid http/https url
returns (boolean):
true:
Thmbnl creation was successful. The URL has been added to the queue and a thumbnail should be available shortly.
false:
Thmbnl creation failed. See error() for details.
returns:
Last error from Thmbnl. May include:
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |