Dashboard > SmugMug > ... > API 1.2.0 > smugmug.images 1.2.0 > smugmug.images.getURLs 1.2.0
Log In   View a printable version of the current page.
SmugMug
smugmug.images.getURLs 1.2.0
Added by David Parry , last edited by David Parry on Feb 08, 2008  (view change)
Labels: 
(None)

API Method: smugmug.images.getURLs

This method will return all the URLs for the various sizes of the image specified by ImageID. The Album must be owned by the Session holder, or else be Public (if password-protected, a Password must be provided), to return results. Otherwise, an "invalid user" faultCode will result. Additionally, obvious restrictions on Originals and Larges apply if so set by the owner. They will return as empty strings for those URLs if they're unavailable.

Arguments:* String SessionID

  • int ImageID
  • int TemplateID
    • optional, specifies which Style to build the AlbumURL with. Default: 3
    • Possible values:
      • Elegant: 3
      • Traditional: 4
      • All Thumbs: 7
      • Slideshow: 8
      • Journal: 9
  • String Password optional
  • String SitePassword optional
  • string ImageKey

Result:* struct

    • String "AlbumURL"
    • String "TinyURL"
    • String "ThumbURL"
    • String "SmallURL"
    • String "MediumURL"
    • String "LargeURL" (if available)
    • String "XLargeURL" (if available)
    • String "X2LargeURL" (if available)
    • String "X3LargeURL" (if available)
    • String "OriginalURL" (if available)

Fault Codes:* 4 - "invalid user (message)"

  • 5 - "system error"

Looks like you need an AlbumID as well as a parameter, else it returns bogus URLs.

No big deal..

-g

Posted by Anonymous at Jan 22, 2008 18:32 | Reply To This
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators