How to get the user 'contactid' using google API using PHP

前端 未结 1 1067
余生分开走
余生分开走 2021-01-26 23:17

I am trying to fetch user contacts with all user details uaing the google API 3.0. I am able to get the JSON response with the details of the user.

$url = \'http         


        
相关标签:
1条回答
  • 2021-01-26 23:51

    According the documentation, contactIid is returned in the contact entry URL returned by the API:

    http://www.google.com/m8/feeds/contacts/<userEmail>/base/<contactId>
    

    So, giving your sample:

    http://www.google.com/m8/feeds/contacts/sfdhitdf1%40gmail.com/base/1
    

    We have these values:

    userEmail: sfdhitdf1@gmail.com
    contactId: 1
    
    0 讨论(0)
提交回复
热议问题