Problem creating album using template
nzsnapper
Registered Users Posts: 34 Big grins
My plugin SmuginForAperture allows users to create a new album based on any available album templates, or at least it used to. It appears that something is broken.
I pass the AlbumTemplateID value to create the album but the template values do not appear to be used. I could be doing something wrong but I'm pretty sure this used to work. I am using the JSON 1.2.2 endpoint sending the following request and receiving the given response (success):
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG +[RLSmugMugAlbum createAlbumForSession:withTitle:andOptions:andError:] <> - Create album with arguments {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] AlbumTemplateID = 218180;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] CategoryID = 8;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] ThemeID = 1;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Title = TestUnlisted3;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Make request <NSMutableURLRequest http://api.smugmug.com/services/api/json/1.2.2?method=smugmug.albums.create&APIKey=<blah>&SessionID=be66d1a7bc1181bf8a716f41157d03da&AlbumTemplateID=218180&ThemeID=1&CategoryID=8&Title=TestUnlisted3&> {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] "User-Agent" = "SmuginPro/1.1";
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - JSON: {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Album = {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Key = U6kqZ;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] id = 14927818;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] };
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] method = "smugmug.albums.create";
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] stat = ok;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
Am I missing something, is anyone else seeing this? Using the template form the web interface appears to work correctly using the same template.
Thanks.
I pass the AlbumTemplateID value to create the album but the template values do not appear to be used. I could be doing something wrong but I'm pretty sure this used to work. I am using the JSON 1.2.2 endpoint sending the following request and receiving the given response (success):
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG +[RLSmugMugAlbum createAlbumForSession:withTitle:andOptions:andError:] <> - Create album with arguments {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] AlbumTemplateID = 218180;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] CategoryID = 8;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] ThemeID = 1;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Title = TestUnlisted3;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Make request <NSMutableURLRequest http://api.smugmug.com/services/api/json/1.2.2?method=smugmug.albums.create&APIKey=<blah>&SessionID=be66d1a7bc1181bf8a716f41157d03da&AlbumTemplateID=218180&ThemeID=1&CategoryID=8&Title=TestUnlisted3&> {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] "User-Agent" = "SmuginPro/1.1";
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] 2010/12/05 11:35:42 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - JSON: {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Album = {
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] Key = U6kqZ;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] id = 14927818;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] };
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] method = "smugmug.albums.create";
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] stat = ok;
05/12/2010 11:35:42 [0x0-0x292292].com.apple.Aperture[17305] }
Am I missing something, is anyone else seeing this? Using the template form the web interface appears to work correctly using the same template.
Thanks.
0
Comments
Should be going out with this week's release.
Cheers,
David
SmugMug API Developer
My Photos
Thanks David.
SmugMug API Developer
My Photos