External links and the API

wellmanwellman 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:
142767887-L.jpg

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

Comments

  • wellmanwellman Registered Users Posts: 961 Major grins
    edited January 10, 2008
    Egg on my face. Can't see it now. mwink.gif
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 10, 2008
    Clearing your cache isn't enough, try clearing your cookies as well. You can access urls in galleries with external links disabled if you are logged into your account.
    David Parry
    SmugMug API Developer
    My Photos
  • wellmanwellman Registered Users Posts: 961 Major grins
    edited January 10, 2008
    Thanks.

    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.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 10, 2008
    sure...

    242019384-L.png
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 10, 2008
    if you are accessing the urls after retrieving from them with a logged-in session (not anonymous), you will always be able to access them.
    David Parry
    SmugMug API Developer
    My Photos
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited December 4, 2010
    devbobo wrote: »
    if you are accessing the urls after retrieving from them with a logged-in session (not anonymous), you will always be able to access them.

    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.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 5, 2010
    blackgold9 wrote: »
    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.
    David Parry
    SmugMug API Developer
    My Photos
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited December 5, 2010
    devbobo wrote: »
    From memory, you are using the OAuth...in that case send the Authorization header as outlined in the OAuth spec.
    No, didnt go with oauth. Any other alternatives?
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 5, 2010
    blackgold9 wrote: »
    No, didnt go with oauth. Any other alternatives?

    ok no worries...send a 'X-SmugSession' header set to the SessionID.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.