Package flickyou :: Package backend :: Module json :: Class JSONBackend

Class JSONBackend

source code

      object --+    
               |    
base.BaseBackend --+
                   |
                  JSONBackend

This backend uses JSON as format for HTTP Response and REST for the Request.

See <http://www.flickr.com/services/api/request.rest.html> and <http://www.flickr.com/services/api/response.json.html>.

Instance Methods
 
__init__(self, api_key, secret_key)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
auth_checkToken(self)
flickr.auth.checkToken: Returns the credentials attached to an authentication token.
source code
 
auth_getFrob(self)
flickr.auth.getFrob: Returns a frob to be used during authentication.
source code
 
auth_getToken(self)
flickr.auth.getToken: Returns the auth token for the given frob, if one has been attached.
source code
 
get_buddy_icon_url(self, user_id=None)
get_buddy_icon_url: Returns the URL of the given user's buddy icon.
source code

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

    Inherited from base.BaseBackend
 
authenticate(self, requested_perms='write')
All the authentication machinery.
source code
 
authenticate_step_one(self, perms='write', sleep_time=3)
This implement the first step of authentication machinery.
source code
 
call_api_method(self, api_method_name, auth, **params)
Calls the remote API method.
source code
 
photo_upload(self, filename=None, photo_data=None, data_content_type='image/jpeg', **params)
Uploading photos: It works outside the normal Flickr API framework because it involves sending binary files over the wire.
source code
Properties

Inherited from object: __class__

Method Details

__init__(self, api_key, secret_key)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: base.BaseBackend.__init__

auth_checkToken(self)

source code 
flickr.auth.checkToken:
    Returns the credentials attached to an authentication token.
    This method call must be signed.

To be overridden.

See: <http://www.flickr.com/services/api/flickr.auth.checkToken.html>

Overrides: base.BaseBackend.auth_checkToken
(inherited documentation)

auth_getFrob(self)

source code 
flickr.auth.getFrob:
    Returns a frob to be used during authentication.
    This method call must be signed.

To be overridden.

See: <http://www.flickr.com/services/api/flickr.auth.getFrob.html>

Overrides: base.BaseBackend.auth_getFrob
(inherited documentation)

auth_getToken(self)

source code 
flickr.auth.getToken:
    Returns the auth token for the given frob, if one has been attached.
    This method call must be signed.

To be overridden.

See: <http://www.flickr.com/services/api/flickr.auth.getToken.html>

Overrides: base.BaseBackend.auth_getToken
(inherited documentation)

get_buddy_icon_url(self, user_id=None)

source code 

get_buddy_icon_url:
    Returns the URL of the given user's buddy icon.
    This works outside the Flickr API documentation.
    
See: <http://flickr.com/services/api/misc.buddyicons.html>