Bug: API doesn't set album styles from the template
marek
Registered Users Posts: 4 Beginner grinner
My template is configured with
Theme: default
Gallery style: Thumbnails
Pagination: Show thumbnails in a single page
Auto sort: By date taken (if available)
When I create a new album using the template, the pagination and auto sort fields don't get set and remain with default values.
This creates the album but doesn't set the style properly:
This request I pulled out from the source code of Digikam's kipi plugins, and it works nicely:
What is https://api.smugmug.com/hack/ ? An old API address? Or a development version of the API? Anyway, it looks like this is broken in 1.2.2. I couldn't try 1.3.0, since it doesn't accept the templates at all, as described in my other post.
Theme: default
Gallery style: Thumbnails
Pagination: Show thumbnails in a single page
Auto sort: By date taken (if available)
When I create a new album using the template, the pagination and auto sort fields don't get set and remain with default values.
This creates the album but doesn't set the style properly:
https://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.create&Title=TestAblumServices&CategoryID=1186276&AlbumTemplateID=298622&SessionID=xxxxxxxxxxxxx
This request I pulled out from the source code of Digikam's kipi plugins, and it works nicely:
https://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.albums.create&Title=TestAblumHack&CategoryID=1186276&AlbumTemplateID=298622&SessionID=xxxxxxxxxxxxxxxxxxxx
What is https://api.smugmug.com/hack/ ? An old API address? Or a development version of the API? Anyway, it looks like this is broken in 1.2.2. I couldn't try 1.3.0, since it doesn't accept the templates at all, as described in my other post.
0
Comments
I just created this album in your account using API 1.2.2 and that AlbumTemplate without a problem.
Cheers,
David
SmugMug API Developer
My Photos
Thanks for looking into this.
The album you created shows the following settings:
Pagination: Viewer Controlled
Auto sort: None
If I reapply the template from the web interface, I get the correct values:
Pagination: Show thumbnails in a single page
Auto sort: By date taken (if available)
Thanks
I created a template with the following settings:
Pagination: Show thumbnails in a single page
Auto sort: By filenames
I create an album through the API and apply this template, which results in:
Pagination: Viewer Controlled
Auto sort: None
I then apply the same template to the same album, but through the web interface:
Pagination: Show thumbnails in a single page
Auto sort: By filenames
Do you have the details of the template that you are applying ? AlbumTemplateID ? So I can take a look ?
SmugMug API Developer
My Photos