开发者

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.

So I would expect the URL below and its corresponding code to echo a list of all my Gmail contacts. But it simply returns a blank page. Any idea why it does not echo a list of all my Gmail contacts?

开发者_StackOverflow中文版

Thanks in advance,

John

URL: http://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. Read the api about authenticating youself with arizona williams' account.

That is also NOT how you return the data of a page.... Look into using apache gets or curl. You're getting the "get" data from a browser request (similar to a post request or posted cookie).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜