我想获取与给定 gmail 帐户关联的电子邮件 ID。xampp server这应该在本地服务器上完成,我正在使用Windows 7.
我正在使用以下链接获取 gmail 联系人。
以下步骤我已经完成:
在谷歌上创建项目并激活联系人 API。
粘贴
client_id和client_secret_id。google_redirect_uri ='http://localhost';
问题
当我点击import google contacts按钮时,它会将我重定向到谷歌的登录页面以选择登录帐户,登录网站后要求我Allow Contact shares这样做?”
单击允许按钮后,它会将我重定向到 xampp 的默认索引页面http://localhost/dashboard/,因为我在谷歌应用程序的重定向 url 中设置了http://localhost.
我尝试根据我的文件程序路径将重定向 url 设置为联系 google 的 api,但它不允许我使用/,所以我将其设置为 :http://localhost代替http://localhost/contacts/index.php
那么我在哪里可以看到我从 google contact api 得到的响应?