• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks Bug: API doesn't set album styles from the template

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Sep-30-2012, 06:52 AM
#1
marek is offline marek OP
Beginner grinner
Bug: API doesn't set album styles from the template
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:

Code:
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:
Code:
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.
Old Oct-04-2012, 05:32 PM
#2
devbobo is offline devbobo
technicolored
devbobo's Avatar
G'day Marek,

I just created this album in your account using API 1.2.2 and that AlbumTemplate without a problem.

Cheers,

David
__________________
David Parry
SmugMug API Developer
My Photos
Old Oct-05-2012, 05:06 AM
#3
marek is offline marek OP
Beginner grinner
Hi devbobo,

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
Old Mar-11-2013, 12:36 PM
#4
marek is offline marek OP
Beginner grinner
This bug is still not fixed.

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
Old Mar-18-2013, 08:21 PM
#5
devbobo is offline devbobo
technicolored
devbobo's Avatar
Quote:
Originally Posted by marek View Post
This bug is still not fixed.

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 ?
__________________
David Parry
SmugMug API Developer
My Photos
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
API 1.3 album creation bug? marek SmugMug APIs, Hacks & Tricks 1 Oct-04-2012 07:28 PM
Problem creating album from template nzsnapper SmugMug APIs, Hacks & Tricks 3 Jan-31-2012 09:53 PM
Problem creating album using template nzsnapper SmugMug APIs, Hacks & Tricks 4 Dec-09-2010 11:22 PM
API Update Archive devbobo SmugMug APIs, Hacks & Tricks 0 Oct-09-2007 04:16 PM
Cobranding and Customization FAQ Mike Lane SmugMug Customization 1 Sep-07-2005 11:05 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump