Examples

Here you can see the Anonymous login and OAuth login examples provided with phpSmug in action[1]. Each example will update the iframe at the bottom of this page.

The two examples will ultimately display thumbnails of all public photos, linking to the medium size version, in the first public gallery found.

  • Anonymous Login

    This example will display the first 36 photos of the first public gallery found for the specified user.

    Enter the nickname of a user who's public photos you wish to see

  • Password Login

    I have deliberately not included a demonstration of the Email and Password example as it's not the most secure method of authenticating with SmugMug and I don't want to inadvertently expose your login details. The source code is very simple and easy to follow anyway.

  • OAuth Login

    This example will display the first 36 photos of the first gallery found for the authenticated user.

    Click HERE to start OAuth procedure (it'll load in the frame below).

    NOTE: You will need to complete this full procedure everytime you use the demo as the demo does NOT store a copy of the OAuth token and secret.



[1] - The examples used here have been modified to make them interactive and more fitting with the appearance of this site.



  

Support SmugMug

Help SmugMug get onto StackExchange by clicking the image below, clicking "Commit" and then confirming your email address.

Support SmugMug get onto StackExchange

SmugMug Discount



2ZxFXMC19qOxU Use the above code to get $5 off your 1st year at SmugMug.
Register here.

phpSmug Users

  • SmugMug Media Silo

    The SmugMug Media Silo is a plugin for Habari that uses phpSmug to interact with SmugMug and present a "silo" for access to a users photos for easy insertion into posts.

If you're using phpSmug and wish to let the world know, drop me a line and I'll add a link and short description here