1.2.2 API method to get custom domain?
BeachBill
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!
If so, I'm having trouble locating it.
Thanks!
0
Comments
SmugMug API Developer
My Photos
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/
login, smugmug.users.getInfo and friends/family methods now all return custom domains if available.
Cheers,
David
SmugMug API Developer
My Photos
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.
With anonymous logins, there is no user attached to the session so there is no additional information to return.
SmugMug API Developer
My Photos
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.