Login to smugmug using the contents of the configuration file.
If no configuration file is specified then a file named
.pysmugrc in the user's home directory is used if it
exists.
The format is a standard configuration parseable by
ConfigParser . The main section pysmug is
required. The key login references which section to use for
authentication with SmugMug. The key smugmug is optional
and can specify an alternate SmugMug class to instantiate.
This is an example file:
[pysmug]
login=login_withHash
smugmug=pysmug.SmugTool
[login_withHash]
APIKey = <my api key>
userId = <my user id>
passwordHash = <my password hash>
[login_anonymously]
APIKey = <my api key>
- Parameters:
conf (string) - path to a configuration file
klass (SmugMug class) - class to instantiate
proxy - address of proxy server if one is required
(http[s]://localhost[:8080])
- Raises:
ValueError - if no configuration file is found
|