After arranging images in an album using the SmugMug drag/drop "arrange mode", smugmug.images.get will not return the updated image positions. The images do appear in the correct order within the album on the SmugMug site.
As far as I can tell, the position attribute is set on SmugMug once when the album is created, and not updated in a way that can be accessed by the API. Can anyone help me understand how to get the updated image position?
Other attributes appear to update immediately (keywords, caption, etc).
Here's my API request, using phpSmug:
// Create a new instance of phpSmug
$f = new phpSmug( array(
'APIVer' => SMUGMUG_SYNC_API_VER,
'AppName' => SMUGMUG_SYNC_APP_NAME,
'APIKey' => SMUGMUG_SYNC_API_KEY,
'OAuthSecret' => SMUGMUG_SYNC_OAUTH_SECRET
) );
// Try to connect to SmugMug
try {
// Authorize
$f->setToken( array(
'id' => $app_token['Token']['id'],
'Secret' => $app_token['Token']['Secret']
) );
// get images
$images = $f->images_get( array(
'AlbumID' => $album->album_id,
'AlbumKey' => $album->album_key,
'Extras' => 'id,Key,Caption,Keywords,LastUpdated,URL,LargeURL,SmallURL,ThumbURL,MediumURL,OriginalURL,Position'
));
} catch ( Exception $e ) {
echo json_encode(array(
'message' => "{$e->getMessage()} (Error Code: {$e->getCode()})",
'success' => false
));
die();
}
And here's an example response for $images:
[0] => Array
(
[id] => 2153130465
[Key] => nhg9fVz
[Caption] =>
[Keywords] => 315564, 10151188718698686, 1795018302
[LargeURL] => http://www.davidmoskowitz.net/photos/i-nhg9fVz/0/L/i-nhg9fVz-L.jpg
[LastUpdated] => 2012-10-15 21:48:19
[MediumURL] => http://www.davidmoskowitz.net/photos/i-nhg9fVz/0/M/i-nhg9fVz-M.jpg
[OriginalURL] => http://www.davidmoskowitz.net/photos/i-nhg9fVz/0/O/i-nhg9fVz.jpg
[Position] => 2
[SmallURL] => http://www.davidmoskowitz.net/photos/i-nhg9fVz/0/S/i-nhg9fVz-S.jpg
[ThumbURL] => http://www.davidmoskowitz.net/photos/i-nhg9fVz/0/Th/i-nhg9fVz-Th.jpg
[URL] => http://www.davidmoskowitz.net/Other/Test-Gallery/25960738_dSjkrH#2153130465_nhg9fVz
)
Any help would be much appreciated!
Thanks,
Darin