| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
SmugBase
Abstract functionality for SmugMug API clients.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
proxy address of proxy server if one is required (http[s]://localhost[:8080]) |
|||
| bool |
secure whether to use a secure http connection |
||
|
sessionId session id from smugmug. |
|||
|
|||
| protocol | |||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Prepare a new connection. Create a new connection setting up the query string, user agent header, response buffer and ssl parameters.
|
Handle the response from SmugMug. This method decodes the JSON response and checks for any error
condition. It additionally adds a
|
Execute the request. A request pending execution.
|
Prepare the keywords for sending to SmugMug. The following steps are followed:
1. If the key is C{method}, continue.
2. If the key starts with an upper case letter, continue.
3. If the key is in C{methods.apikeys}, replace the key.
4. If the key ends with C{id}, upper case the first letter
and C{ID} and replace the key.
5. Else, upper case the first letter only and replace the
key.
|
Upload the corresponding image. One of ImageID or AlbumID must be present, but not both.
|
|
|||
protocol
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Feb 13 21:08:04 2008 | http://epydoc.sourceforge.net |