Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there an API set for Ubuntu One? For example, an API to sync contacts, bookmarks, etc.

share|improve this question
add comment

3 Answers 3

up vote 11 down vote accepted

The common way to store something persistently and have it synchronise with Ubuntu One is to just use desktopcouch. Here's an example:

from desktopcouch.records.server import CouchDatabase
from desktopcouch.records.record import Record

database = CouchDatabase("askubuntu_test", create=True)

record = Record(
    {"site": "askubuntu.com", "awesome": True}, "http://example.com")

database.put_record(record)

Where "example.com" should ideally point to a description of your record format.

And to retrieve the information afterwards:

database = CouchDatabase("askubuntu_test")

for i in database.get_records(create_view=True):
    print i

The API to desktopcouch is pretty straightforward, have a look at the Desktopcouch Documentation to learn more about it.

share|improve this answer
add comment

What @Stefano said. Also, right now there isn't a single place where you can go and read up on all the different APIs related to Ubuntu One, but we're building it in time for Natty.

share|improve this answer
    
I can't wait :) –  Stefano Palazzo Jan 15 '11 at 14:57
2  
Neither can I. And I'm building it. :) –  sil Jan 15 '11 at 20:17
    
ha, great! waiting for it –  feifan.overflow Jan 16 '11 at 3:57
add comment

Yes.. try see this: https://one.ubuntu.com/developer/

share|improve this answer
1  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Stephen Myall Aug 14 '12 at 8:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.