OAuth - Displaying images with external links set to off.

Justin BJustin B Registered Users, Retired Mod Posts: 488
The setup of OAuth went smoothly and I'm having a great time with the api. What I can't figure out how to do is display images in our app that have external links set to off. I've tried appending a query string with the OAuth variables to the url because I read some threads that mentioned passing the Session ID with the other apis, but no luck.

Is there no way around the external links option using the api?

Thanks
Justin

Comments

  • Justin BJustin B Registered Users, Retired Mod Posts: 488
    edited January 29, 2010
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 31, 2010
    G'day Justin,

    yes, unfortunately that won't work at the moment.

    At present, OAuth is only honoured at the api-level...it's on my list to add deeper integration on album and image urls etc.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Justin BJustin B Registered Users, Retired Mod Posts: 488
    edited February 1, 2010
    Thanks David. I look forward to that functionality with OAuth.

    Justin
  • Justin BJustin B Registered Users, Retired Mod Posts: 488
    edited March 7, 2011
    David, is it now possible to build a url using OAuth to display/download images with external links set to off or in a password protected gallery? Thanks!
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 7, 2011
    Justin B wrote: »
    David, is it now possible to build a url using OAuth to display/download images with external links set to off or in a password protected gallery? Thanks!

    Hey Justin,

    yes, you should be able to send the Authorization header (as outlined by the OAuth spec) with the request to access images in a passworded gallery or with external links disabled.

    Let me know how you get on.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited April 8, 2011
    devbobo wrote: »
    Hey Justin,

    yes, you should be able to send the Authorization header (as outlined by the OAuth spec) with the request to access images in a passworded gallery or with external links disabled.

    Let me know how you get on.

    Cheers,

    David

    Any chance of adding the ability to make a signed request to the service to download protected photos/video? (No header needed)

    Would be great as wp7 does not make adding headers to image and video downloads very easy (impossible for video playback)
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited April 8, 2011
    This is based on the (possibly flawed) understanding that you can supply the oauth values in quersystring instead of in a header.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 8, 2011
    blackgold9 wrote: »
    This is based on the (possibly flawed) understanding that you can supply the oauth values in quersystring instead of in a header.

    This is currently only implemented with headers, but it's on my list of things to investigate in regard to doing the same with oauth parameters in the query string....but it's a bit more complex.
    David Parry
    SmugMug API Developer
    My Photos
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited April 9, 2011
    Do oAuth Headers allow feeds to display hidden photos/albums (If owned/visible by authenticated user)?
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited April 9, 2011
    blackgold9 wrote: »
    Do oAuth Headers allow feeds to display hidden photos/albums (If owned/visible by authenticated user)?

    Whoops, forgot to specify. In feeds. Will they help in feeds.
Sign In or Register to comment.