Part of elisa.plugins.flickr.resource_provider View In Hierarchy
Line # | Kind | Name | Docs |
---|---|---|---|
72 | Method | initialize | Initialize the component. |
89 | Method | clean | Close all the open HTTP connections. |
106 | Method | login | Login to the Flickr webservice using the given credentials. |
173 | Method | get | GET request to the Flickr servers. |
462 | Method | post | POST request to the Flickr servers. |
Inherited from ResourceProvider:
Line # | Kind | Name | Docs |
---|---|---|---|
107 | Method | put | Put one resource into another. Both resources are identified with URIs. |
129 | Method | delete | Delete a Resource represented by a URI. |
Inherited from Component (via ResourceProvider):
Line # | Kind | Name | Docs |
---|---|---|---|
85 | Class | PathDescriptor | Undocumented |
97 | Class Method | create | Create and initialize the component. |
Inherited from Loggable (via ResourceProvider, Component):
Line # | Kind | Name | Docs |
---|---|---|---|
81 | Method | __init__ | Undocumented |
Initialize the component.
This method is called byComponent.create
to finish the
initialization of a component.
Returns | a deferred called when a component is fully initialized
(type: twisted.internet.defer.Deferred
) |
Parameters | username | login of the user (type: string ) |
password | password of the user (type: string ) | |
Returns | (type: twisted.internet.defer.Deferred
) |
GET request to the Flickr servers. The request URI can be of one of the following forms: http://api.flickr.com/services/rest/?.* http://farm{farm_id}.static.flickr.com/.*\.jpg @param uri: URI pointing to the resource @type uri: L{elisa.core.media_uri.MediaUri} @param context_model: [not used] @type context_model: C{None} @return: a new model and a deferred fired when the model is filled with the requested resource's data @rtype: tuple of L{elisa.core.components.model.Model} L{elisa.core.utils.defer.Deferred}
POST request to the Flickr servers. The request URI can be of one of the following forms: http://api.flickr.com/services/upload/ http://api.flickr.com/services/replace/ @param uri: URI pointing to the resource @type uri: L{elisa.core.media_uri.MediaUri} @param arguments: the arguments (including authentication and signing) @type arguments: C{dict} of C{str} @param filename: the name of a local photo file @type filename: C{str} @return: a deferred fired with the id of the photo uploaded/replaced when the operation is complete @rtype: L{elisa.core.utils.defer.Deferred}