Author Topic: Use Google Contacts  (Read 18807 times)

los93sol

  • Guru
  • ****
  • Posts: 396
    • View Profile
Use Google Contacts
« on: November 03, 2009, 01:45:31 am »
After inputting all my contacts into my core it dawned on me that an easier way of doing this would be to add the ability to pull contacts in from Google Contacts like I do on my Mobile.  This gives me a backup of my contacts and means that whenever a change happens on my Mobile or Google the changes are automatically synced up in all places without ever having to manually edit them in more than one place.  It would be great to have LinuxMCE playing nicely with this so that all devices would be seamless.

jimbodude

  • Guru
  • ****
  • Posts: 372
    • View Profile
Re: Use Google Contacts
« Reply #1 on: November 04, 2009, 04:02:21 pm »

Enigmus

  • Veteran
  • ***
  • Posts: 132
    • View Profile
Re: Use Google Contacts
« Reply #2 on: November 05, 2009, 01:31:01 pm »
Wow, the tools are there, and this looks like it would be very useful.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Use Google Contacts
« Reply #3 on: November 05, 2009, 02:27:28 pm »
somebody take charge of this and do it.

-Thom

los93sol

  • Guru
  • ****
  • Posts: 396
    • View Profile
Re: Use Google Contacts
« Reply #4 on: November 05, 2009, 03:39:07 pm »
Thom,

I'll give it a shot now that I'm getting more comfortable with LMCE codebase, but can you provide some implementation advice please?  I am only a beginner and haven't been able to look at the LMCE code to see how contacts are currently handled, but I imagine they are written to a database.  I'm thinking this should be relatively easy to implement since google has already provided some code to fetch all contacts and make edits from your own application so really I think I just need to tie this into LMCE's existing code for editing contacts, etc.  So basically as a start just fetch all contacts from Google and write them to the database through the web admin, then add the editing bits with a sync contacts button in the web admin to push any changes back to google.  Again, I haven't even looked at the existing LMCE code yet, but does that sound about right to you?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Use Google Contacts
« Reply #5 on: November 05, 2009, 03:42:50 pm »
Yes. We don't currently have THAT many fields in the pluto_telecom database for the Contact table, we just have a Contact table for the general contact info (name, company, etc.), and a Phonenumber table, for storing the individual phone numbers.

-Thom

jimbodude

  • Guru
  • ****
  • Posts: 372
    • View Profile
Re: Use Google Contacts
« Reply #6 on: November 05, 2009, 04:30:11 pm »
If you do take this on - try to plan for the future.  Think about how your stuff could connect to other contact databases, or how it could accumulate contacts from multiple databases simultaneously.  Facebook comes to mind first.  A lot of the newer smartphones are starting to have this capability, so it's definitely something people will know about.

I'm not saying that such expandability should work in the first implementation, but don't do anything that would prohibit that sort of functionality down the road.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Use Google Contacts
« Reply #7 on: November 05, 2009, 04:32:35 pm »
just keep two words in mind, "simple" and "sane"

-Thom

donpaul

  • Guru
  • ****
  • Posts: 300
    • View Profile
Re: Use Google Contacts
« Reply #8 on: November 05, 2009, 06:52:04 pm »
Please make sure it works with google apps as well. Lots of people overlook that as well.

los93sol

  • Guru
  • ****
  • Posts: 396
    • View Profile
Re: Use Google Contacts
« Reply #9 on: November 05, 2009, 09:29:15 pm »
What do you mean make sure it works with google apps?  You mean edits on LMCE should push back to google contacts right?  Or are you referring to something else?

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: Use Google Contacts
« Reply #10 on: November 15, 2009, 10:20:54 pm »
What about looking at integrating an existing open-source project to handle contacts and syncing, like one of the groupware projects?  That could allow LinuxMCE to leverage work and technology that is constantly being developed for that purpose, and LinuxMCE would only need to be concerned with the integration.  I started a thread about Calendar/Groupware integration.

Hope that helps!

/Mike

Che

  • Regular Poster
  • **
  • Posts: 36
    • View Profile
Re: Use Google Contacts
« Reply #11 on: November 19, 2009, 12:12:39 am »
Man, I wish LMCE would just stop being so damned awesome!

los93sol

  • Guru
  • ****
  • Posts: 396
    • View Profile
Re: Use Google Contacts
« Reply #12 on: November 23, 2009, 04:52:34 pm »
Sorry guys, I will come back to this, got wrapped up with other projects for a bit.  If someone else has the time now feel free to get a start on it, complete it, whatever, just please let me know if you're actively working on it so we don't duplicate efforts.

Silverskull

  • Regular Poster
  • **
  • Posts: 16
    • View Profile
Re: Use Google Contacts
« Reply #13 on: November 27, 2009, 05:08:46 am »
What do you mean make sure it works with google apps?  You mean edits on LinuxMCE should push back to google contacts right?  Or are you referring to something else?

As in... don't ask for an account that ends in @gmail.com.  Google apps users (such as myself) have accounts with custom domains.  That and people who choose not to create Gmail accounts and use their existing addresses instead.

Though edits on LinuxMCE definitely should push back to Google Contacts either way.

los93sol

  • Guru
  • ****
  • Posts: 396
    • View Profile
Re: Use Google Contacts
« Reply #14 on: November 27, 2009, 01:47:20 pm »
Silverskull, feel free to dig into the code and get a jump on this