Google account sync

You found a bug or you're missing a major feature? Just ask and discuss
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
VicDeo
Developer
Posts: 48
Joined: Tue Jan 24, 2012 2:12 am

Google account sync

Postby VicDeo » Tue Jan 24, 2012 2:41 am

App is available here.
Contacts import is implemented at the moment.

owncloud 4.5.x http://apps.owncloud.com/content/show.p ... ent=151488

owncloud 4.x
gsync-0.4.tar.gz
ownCloud 4.x
(140.22 KiB) Downloaded 315 times


ownCloud 3.x https://gitorious.org/owncloud/owncloud ... v0.2/gsync
v0.2.tgz
ownCloud 3.x
(34.76 KiB) Downloaded 240 times


FAQ:
Some contacts are imported as UNKNOWN
Check 'Other contacts' in your Google contacts. You will see a number of contacts that have no other data specified except email. All those contacts are imported as UNKNOWN.



TODO:

Code: Select all

* test it a bit ;)


Changelog:

Code: Select all

v0.4.1
* tested with 4.5
* Fixed incorrect names order for 4.5
* Fixed reversed ZIP/Country order for 4.5
* Email types support

v0.4
* Note property support
* More stable and faster
* Group caching to reduce the number of requests
* Skip contacts changed in ownCloud within last 10 minutes
* Autosync support *Experimental*
* Logic moved to PHP model
v0.3.2
* Do not store contact image if the format is not recognized
* Rescan contact groups
v0.3.1
* fixed name collision with the app title at apps.owncloud.com
* sanitize input for Client ID
* check for the php-curl extension
* cUrl SSL error fix
v0.3
* ownCloud 4 compatibility
* Birthday property support
* Nickname property support
* Groups support
v0.2
* OAuth 2.0
* Gdata library dismissed / Manual data parsing
* Sync for previously imported contacts
* Photo export
v0.1.2
* Minor bugfixes
v0.1.1
* Compatibility: The 'N' VCard property is taken according to the current dev version of owncloud
* Bugfix: Infinite request permissions loop
* Required ownCloud version changed to 3

v0.1
* Implemented Google contacts import




Image

Last updated on: Feb 26, 2013
Last edited by VicDeo on Wed Jun 20, 2012 10:20 pm, edited 37 times in total.
no sorry for myself

tpn
Developer
Posts: 26
Joined: Thu Jan 19, 2012 6:50 pm

Re: Project participation

Postby tpn » Tue Jan 24, 2012 4:43 pm

Come hang out in the irc channel sometime (unless you already do :) )

#owncloud on freenode

VicDeo
Developer
Posts: 48
Joined: Tue Jan 24, 2012 2:12 am

Re: Google account sync

Postby VicDeo » Mon Jan 30, 2012 10:47 pm

Well, I have taken the challenge :)
I'm not sure whether it was a good idea to clone the whole 'apps' repository. :roll:

App is available here.
https://gitorious.org/~vicdeo/owncloud/ ... ster/gsync

For now it adds the 'Import Contacts' button to the personal page to pull all the contacts from the Google Contacts into the newly created address book.
The feedback is appreciated as I need to be sure that I'm on a right track
no sorry for myself

VicDeo
Developer
Posts: 48
Joined: Tue Jan 24, 2012 2:12 am

Re: Google account sync

Postby VicDeo » Thu Feb 02, 2012 8:34 pm

Did anybody try it?
I really need some feedback for further work
no sorry for myself

ricardopvz
Newbie
Posts: 7
Joined: Thu Feb 02, 2012 8:48 pm

Re: Google account sync

Postby ricardopvz » Thu Feb 02, 2012 8:54 pm

VicDeo wrote:Did anybody try it?
I really need some feedback for further work


I tried it but it keeps redirecting to google account to grant access

owncloud.png
owncloud.png (27.44 KiB) Viewed 18652 times

potex
Newbie
Posts: 9
Joined: Mon Jan 30, 2012 7:53 pm

Re: Google account sync

Postby potex » Thu Feb 02, 2012 9:09 pm

VicDeo wrote:Did anybody try it?
I really need some feedback for further work



Hey,
have tried it today and dont work.
Same as "ricardopvz", it redirects to google and if i accept it refresh and again to google, i have done this 5 times and always redirect to google accept page
Would be great if you can fix this.

Greets

VicDeo
Developer
Posts: 48
Joined: Tue Jan 24, 2012 2:12 am

Re: Google account sync

Postby VicDeo » Thu Feb 02, 2012 10:31 pm

Thanks for feedback :D
Hmm.. Browsers are too fast and execute a new login request while setting the cookie got from the previous one.

I've commited a workaround for that. Please check if it works now.
no sorry for myself

ricardopvz
Newbie
Posts: 7
Joined: Thu Feb 02, 2012 8:48 pm

Re: Google account sync

Postby ricardopvz » Thu Feb 02, 2012 10:44 pm

VicDeo wrote:Thanks for feedback :D
Hmm.. Browsers are too fast and execute a new login request while setting the cookie got from the previous one.

I've commited a workaround for that. Please check if it works now.


It works now, but there's another problem.
After import, in contacts this is what i get in every contact:

owncloud.png
owncloud.png (85.88 KiB) Viewed 18635 times

ricardopvz
Newbie
Posts: 7
Joined: Thu Feb 02, 2012 8:48 pm

Re: Google account sync

Postby ricardopvz » Thu Feb 02, 2012 10:54 pm

Found the problem.

The card data is missin the "N:" thing

VicDeo
Developer
Posts: 48
Joined: Tue Jan 24, 2012 2:12 am

Re: Google account sync

Postby VicDeo » Thu Feb 02, 2012 10:55 pm

ricardopvz wrote:It works now, but there's another problem.
After import, in contacts this is what i get in every contact:


AFAIK the 'N' vcard property is not implemented in the stable release. You have the recent version from the repo, don't you?
no sorry for myself


  • Similar Topics
    Replies
    Views
    Last post

Return to “Discuss possible bugs & feature requests”

Who is online

Users browsing this forum: No registered users and 2 guests