PLEASE READ BEFORE POSTING:

If you are willing to offer some compensation for a new feature or bug fix, you can use the Help Wanted forum. Start a new topic for each new feature idea, and when someone someone decides to do it, please edit the Roadmap Wiki which lists active work.
LinuxMCE Forums
June 18, 2013, 11:45:39 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1] 2
  Print  
Author Topic: Use Google Contacts  (Read 5834 times)
los93sol
Guru
****
Posts: 396


View Profile
« 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.
Logged
jimbodude
Guru
****
Posts: 372


View Profile
« Reply #1 on: November 04, 2009, 04:02:21 pm »

I like it.

http://code.google.com/apis/contacts/docs/3.0/developers_guide.html
Logged
Enigmus
Veteran
***
Posts: 132



View Profile
« Reply #2 on: November 05, 2009, 01:31:01 pm »

Wow, the tools are there, and this looks like it would be very useful.
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #3 on: November 05, 2009, 02:27:28 pm »

somebody take charge of this and do it.

-Thom
Logged
los93sol
Guru
****
Posts: 396


View Profile
« 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?
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« 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
Logged
jimbodude
Guru
****
Posts: 372


View Profile
« 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.
Logged
tschak909
LinuxMCE God
****
Posts: 5116

DOES work for LinuxMCE.


View Profile
« Reply #7 on: November 05, 2009, 04:32:35 pm »

just keep two words in mind, "simple" and "sane"

-Thom
Logged
donpaul
Guru
****
Posts: 300


View Profile
« 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.
Logged
los93sol
Guru
****
Posts: 396


View Profile
« 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?
Logged
mkbrown69
Veteran
***
Posts: 103


View Profile
« 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
Logged
Che
Regular Poster
**
Posts: 36


View Profile
« Reply #11 on: November 19, 2009, 12:12:39 am »

Man, I wish LMCE would just stop being so damned awesome!
Logged
los93sol
Guru
****
Posts: 396


View Profile
« 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.
Logged
Silverskull
Regular Poster
**
Posts: 16


View Profile
« 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.
Logged
los93sol
Guru
****
Posts: 396


View Profile
« Reply #14 on: November 27, 2009, 01:47:20 pm »

Silverskull, feel free to dig into the code and get a jump on this
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!