Login   Register  
PHP Classes
elePHPant
Icontem

problem with login_with_google.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP OAuth API  >  All threads  >  problem with login_with_google.php  >  (Un) Subscribe thread alerts  
Subject:problem with login_with_google.php
Summary:modified login_with_google.php to get users contacts
Messages:2
Author:Thanos
Date:2013-02-06 16:53:09
Update:2013-02-06 17:24:37
 

  1. problem with login_with_google.php   Reply   Report abuse  
Picture of Thanos
Thanos
2013-02-06 16:53:10
I have modified the "login_with_google.php" in order to get the contacts of the user. The problem is that to parse the information correctly I need to use the GData-Version HTTP header in my request to the google server; however I don't know where I should include the header in the code.

Do you have any thoughts about that? Thanks for your time.

  2. Re: problem with login_with_google.php   Reply   Report abuse  
Picture of Thanos
Thanos
2013-02-06 17:24:37 - In reply to message 1 from Thanos
I think I fixed it. I just had to insert v=3.0 at the end of the URL:
'https://www.google.com/m8/feeds/contacts/default/full/?v=3.0'.