我想获得与给定的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/因为在我设置的谷歌应用程序的重定向网址中http://localhost.
我尝试将重定向网址设置为根据我的文件程序路径联系谷歌的api,但它不允许我使用/所以我将其设置为:http://localhost代替http://localhost/contacts/index.php
那么在哪里可以看到我从谷歌联系api获得的回复?