Package pysmug :: Module smugmug :: Class SmugMug
[hide private]
[frames] | no frames]

Class SmugMug

source code

object --+    
         |    
  SmugBase --+
             |
            SmugMug

Serial version of a SmugMug client.

Instance Methods [hide private]
 
_perform(self, c)
Perform the low-level communication with SmugMug.
source code
 
_login(self, handler, **kwargs) source code
 
login_anonymously(self, APIKey=None)
Login into SmugMug anonymously.
source code
 
login_withHash(self, UserID=None, PasswordHash=None, APIKey=None)
Login into SmugMug with username, password and API key.
source code
 
login_withPassword(self, EmailAddress=None, Password=None, APIKey=None)
Login into SmugMug with username, password and API key.
source code
 
categories_getTree(self)
Return a tree of categories and sub-categories.
source code

Inherited from SmugBase: __getattr__, __init__, batch, images_upload

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]

Inherited from SmugBase: protocol, sessionId

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_perform(self, c)

source code 
Perform the low-level communication with SmugMug.
Overrides: SmugBase._perform

login_anonymously(self, APIKey=None)

source code 
Login into SmugMug anonymously.
Parameters:
  • APIKey - a SmugMug api key
Returns:
the SmugMug instance with a session established

login_withHash(self, UserID=None, PasswordHash=None, APIKey=None)

source code 
Login into SmugMug with username, password and API key.
Parameters:
  • UserID - the account holder's user id
  • PasswordHash - the account holder's password hash
  • APIKey - a SmugMug api key
Returns:
the SmugMug instance with a session established

login_withPassword(self, EmailAddress=None, Password=None, APIKey=None)

source code 
Login into SmugMug with username, password and API key.
Parameters:
  • EmailAddress - the account holder's email address
  • Password - the account holder's password
  • APIKey - a SmugMug api key
Returns:
the SmugMug instance with a session established

categories_getTree(self)

source code 

Return a tree of categories and sub-categories.

The format of the response tree:
 {'Category1': {'id': 41, 'SubCategories': {}},
  'Category2': {'id':  3,
                'SubCategories': {'One': 4493,
                                  'Two': 4299}},
 }

The primary purpose for this method is to provide an easy mapping between name and id.

This method is not a standard smugmug method.