简体   繁体   English

Google通讯录PHP查询返回空白结果

[英]Google Contacts PHP Query Returning Blank Results

In my Google account, the domain name of my site is listed as having been granted access to Google Contacts. 在我的Google帐户中,我网站的域名被列为已被授予访问Google联系人的权限。

So I would expect the URL below and its corresponding code to echo a list of all my Gmail contacts. 因此,我希望下面的URL及其相应的代码能够回显我所有Gmail联系人的列表。 But it simply returns a blank page. 但是它只是返回一个空白页。 Any idea why it does not echo a list of all my Gmail contacts? 知道为什么它不回显我所有Gmail联系人的列表吗?

Thanks in advance, 提前致谢,

John 约翰

URL: http://domain.com/gcontacts2.php 网址: http://domain.com/gcontacts2.phphttp://domain.com/gcontacts2.php

Code: 码:

<?php

$contacts = $_GET ['https://www.google.com/m8/feeds/contacts/arizona.williams%40gmail.com/full']; 


echo $contacts;

?>

Permission error. 权限错误。 A simple ip relation to your domain doesn't grant you access to the accounts contacts. 与您的域的简单IP关系不会授予您访问帐户联系人的权限。 Read the api about authenticating youself with arizona williams' account. 阅读有关使用亚利桑那州威廉姆斯帐户进行身份验证的API。

That is also NOT how you return the data of a page.... Look into using apache gets or curl. 这也不是您返回页面数据的方式。...研究使用apache gets或curl。 You're getting the "get" data from a browser request (similar to a post request or posted cookie). 您正在从浏览器请求中获取“获取”数据(类似于发布请求或发布的Cookie)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM