I am using the following code, but no matter how I structure the array for the images_get method, it never passes the AlbumID correctly..any clues??
<?php
require_once( "phpSmug.php" );
$albumid = $_POST['id1'];
$albumkey = $_POST['id2'];
try {
$mug = new phpSmug( "APIKey=***********", "AppName=****" );
$mug->login();
$images = $mug->images_get(array("AlbumID" => $albumid, "AlbumKey" => $albumkey, "Heavy" => "1" ));
$images = ( $mug->APIVer == "1.2.2" ) ? $images['Images'] : $images;
foreach ( $images as $image ) {
echo '<a href="'.$image['MediumURL'].'"><img src="'.$image['TinyURL'].'" title="'.$image['Caption'].'" alt="'.$image['id'].'" /></a>';
}
}
catch ( Exception $e ) {
echo "{$e->getMessage()} (Error Code: {$e->getCode()})";
}
?>
Thanks in advannce!!!