Create authenticated API for uploading photos

Bug #898029 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libravatar (obsolete)
Confirmed
Wishlist
Unassigned

Bug Description

It has been suggested that Libravatar should have an API for manipulating account data.

The easiest and most obvious use case for this would be to upload a photo from a command-line program (which would be similar to doing the same from a smartphone for example).

Piston looks like a good Django plugin to use:

  https://bitbucket.org/jespern/django-piston/wiki/Home

and is already packaged in Debian and part of Squeeze.

Once we have photo uploads working (maybe using basic auth or OAuth), then the API could be extended further to allow things like:

- getting list of photos you have uploaded and downloading them
- deleting one of your photos
- assigning a photo to an email address
- exporting your account

However, this bug is just about the basic photo upload API and a sample command line tool that takes a file and uploads it to your account (provided you haven't already uploaded the max number of images).

Revision history for this message
François Marier (fmarier) wrote :

Once this works, we should test it using WALint:

  https://wiki.mozilla.org/Services/WALint
  https://github.com/mozilla-services/walint

Revision history for this message
François Marier (fmarier) wrote :

Daniel Greenfield claims that piston is a stalled project:

  http://pydanny.github.com/the-sorry-state-of-python-oauth-providers.html

Changed in libravatar:
assignee: François Marier (fmarier) → nobody
Revision history for this message
François Marier (fmarier) wrote :

Hawk could be a good way to do this:

  http://ozten.com/psto/2013/05/07/pyhawk-hawk-for-python/

Revision history for this message
François Marier (fmarier) wrote :

Note: we would need to think about a federated version of such an API.

An alternative approach is being worked on in https://blueprints.launchpad.net/libravatar/+spec/embedded-version

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.