Problem creating album using template

nzsnappernzsnapper 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&&gt; {
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.

Comments

  • maxpmaxp Registered Users Posts: 1 Beginner grinner
    edited December 9, 2010
    I have the same problem with a python script I wrote. Did you ever find a work-around?
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 9, 2010
    It's a bug...which is fixed internally.

    Should be going out with this week's release.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • nzsnappernzsnapper Registered Users Posts: 34 Big grins
    edited December 9, 2010
    devbobo wrote: »
    It's a bug...which is fixed internally.

    Should be going out with this week's release.

    Cheers,

    David

    Thanks David.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 10, 2010
    This bug fix is now live.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.