1.2.2 API method to get custom domain?

BeachBillBeachBill Registered Users Posts: 1,311 Major grins
Is there an API 1.2.2 method to get the custom domain for an account?

If so, I'm having trouble locating it.

Thanks!
Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 22, 2010
    For a user logging in ? or another user using NickName ?
    David Parry
    SmugMug API Developer
    My Photos
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited January 22, 2010
    devbobo wrote:
    For a user logging in ? or another user using NickName ?

    Either. I'm building links back to galleries or images within galleries and so far I can only determine the nickname.smugmug.com url. I would like to provide the option of building these links using the custom domain name if it exists.

    Here is one example where I'm building the links:
    http://smugroom.com/tools/gallery-list/
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 27, 2010
    Bill,

    login, smugmug.users.getInfo and friends/family methods now all return custom domains if available.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited January 28, 2010
    devbobo wrote:
    login, smugmug.users.getInfo and friends/family methods now all return custom domains if available.

    Excellent!

    I've updated http://smugroom.com/tools/gallery-list/ to give the option of using the custom domain vs. the smugmug.com domain. Thanks!

    One thing I couldn't help notice...

    For anonymous logins, I have to call smugmug.users.getInfo after smugmug.login.anonymously to get the URL because smugmug.login.anonymously only returns a session ID. It would be nice if it would return the DisplayName and URL as well to prevent the need for the extra call. However, I've already implemented it so no worries.
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 28, 2010
    BeachBill wrote:
    For anonymous logins, I have to call smugmug.users.getInfo after smugmug.login.anonymously to get the URL because smugmug.login.anonymously only returns a session ID. It would be nice if it would return the DisplayName and URL as well to prevent the need for the extra call. However, I've already implemented it so no worries.

    With anonymous logins, there is no user attached to the session so there is no additional information to return.
    David Parry
    SmugMug API Developer
    My Photos
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited January 28, 2010
    devbobo wrote:
    With anonymous logins, there is no user attached to the session so there is no additional information to return.

    Yeah that makes perfect sense. I was just thinking about it the way I'm currently using it and I have the nickname before logging in, but yeah, I'm not passing the nickname to the login just using it later so you wouldn't know the user. 11doh.gif
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Sign In or Register to comment.