External links and the API
wellman
Registered Users Posts: 961 Major grins
How long does it take for a change to the external link album setting to "take"? I've disabled external linking in the gallery below, and I can still get the image via its direct URL. I've cleared my cache and all that good stuff. I'm also able to retreive the image via the API (anonymously).
Gallery: http://wellman.smugmug.com/gallery/2695639
Image embed:
Which leads me to my next question... Once the setting is in effect, what will happen in the API? Will that album even show up in the smugmug.albums.get response? If it does, what happens when I access an image URL directly? Do I get a text file, nothingness, or something else?
Thanks. :thumb
Gallery: http://wellman.smugmug.com/gallery/2695639
Image embed:
Which leads me to my next question... Once the setting is in effect, what will happen in the API? Will that album even show up in the smugmug.albums.get response? If it does, what happens when I access an image URL directly? Do I get a text file, nothingness, or something else?
Thanks. :thumb
0
Comments
Swim for Them | WellmanHouse.net | AlbumFetcher | SmugShowBuilder
SmugMug API Developer
My Photos
So what does happen when something tries to access a non-external image URL? Does the client truly get nothing? I'm trying to handle this scenario in AlbumFetcher (because I assume the API will give me the URLs even though they aren't external - seems to be the case), but everything I do gives me a real image, so testing is hard.
Swim for Them | WellmanHouse.net | AlbumFetcher | SmugShowBuilder
SmugMug API Developer
My Photos
SmugMug API Developer
My Photos
How is the session data communicated? Header or cookie? My mobile client is unable to retrieve images with external linking disabled. I need to figure out how to authenticate those requests.
From memory, you are using the OAuth...in that case send the Authorization header as outlined in the OAuth spec.
SmugMug API Developer
My Photos
ok no worries...send a 'X-SmugSession' header set to the SessionID.
SmugMug API Developer
My Photos