MooSmug

MooSmug is a simple way to access SmugMug WITHOUT any server side scripting. No php or whatever needed! Its just plain old Javascript.

To use it you need a SmugMug account and a SmugMug API Key. Without the api key you can’t use MooSmug. It’s not possible to access the api without a key.

Setup

  1. Insert your api key in moosmug.js

    var MooSmug = new Class({
        initialize: function(){
            // You must supply your own API key to use Smugmug Services
            this.fApiKey        = 'API Key goes here';
    
  2. Add the scripts to your (x)html header

    <script src="scripts/mootools.v1.11.js" type="text/javascript"></script>
    <script src="scripts/moosmug.js" type="text/javascript"></script>
    

    Your mileage may vary depending on where you store your Javascript or release used but it should look similar to the code above.

  3. Use it (Example Anonymous Login)

    new MooSmug().callSmugmug({ method: 'smugmug.login.anonymously' });
    jsonSmugmugApi = function(rsp) {
            if (rsp.stat == 'ok' ) {
                if (rsp.Login) {
                                      //do something
                                    }
                            }
    }
    

    The callback for the Smugmug JSON interface is set to jsonSmugmugApi.

Download

Requirements

  • Mootools 1.1+ is required for MooSmug V 0.1 to work.
  • Mootools 1.2+ is required for MooSmug V 0.2 to work.
  • Javascript turned on in your Browser
  • A SmugMug account
  • A SmugMug API Key

No SmugMug User yet?
Start your FREE Trial today and join the happy users of smugmug :-)

License

MooSmug is highly based on MooPix and uses therefor Creative Commons License Attribution-ShareAlike 2.0 too.