aggalex / Contacts

An easy contact manager for elementary OS
GNU General Public License v3.0
30 stars 10 forks source link

Sync with Online Accounts #24

Open aimproxy opened 5 years ago

aimproxy commented 5 years ago

Hi, I already have my all contacts in my google account, it will be nice if we could import contacts from google and sync already created contact to google. It's a functionality takes some time to implement and will be places in different places on the UI. Thats it's envolve some knowledge in libsoup with authentication, and GAPI (google api). I don't know very well how does authentication work with libsoup, but I can give a look and if I leaves victorious I could submit a PR for review!

aggalex commented 5 years ago

I am currently waiting for elementary OS google support on the new online accounts page, and then I will get my hands dirty with this. If however eOS takes too long with this, I'll just have to implement it all by myself... That is, on the second big, official release release of my app.

peteruithoven commented 5 years ago

Hi @aggalex, great work on this app!

@danrabbit has been working on a core elementary OS app called Friends, which he just made public: https://github.com/elementary/friends https://github.com/elementary/friends One interesting aspect is that it uses the online account contacts. But currently it just lists the contacts and doesn't include further contacts details or the ability to edit contacts.

aggalex commented 5 years ago

@peteruithoven I've seen the app's code, but it doesn't seem to use online accounts. Do you know where in the code he does that?

aggalex commented 5 years ago

Is it through the "Folks" library?

cassidyjames commented 5 years ago

@aggalex yes, it uses LibFolks, which ties into Evolution Data Server, which we plan to add support for in Online Accounts. I don't believe there is currently support there, but it's our next major focus after releasing 5.1.

peteruithoven commented 5 years ago

(I currently connected Friends to my Nextcloud instance through Evolution.)

aggalex commented 5 years ago

got it. I will try to work on it.

aggalex commented 5 years ago

This change kindoff completely turns the tables, so it will take sometime.

aggalex commented 5 years ago

Hey, I (kinda) got the reading working, can someone help me with editing? I don't really seem to manage to change any information inside a Folks individual

aggalex commented 5 years ago

Due to:

Libfolks integration is postponed indefinitely, unless someone else can help on the matter meaningfully.

aggalex commented 5 years ago

With the code currently on the with-folks branch, I am planning to implement an import feature, so that the user can also import contacts from the evolution data server (and subsequently, Google contacts) into the app, just like importing a vcard file.