2013-06-27 28 views

回答

1

people.get返回的Person資源包括一個「kind」字段,用於指定「plus#person」或「plus#page」。但是,目前社區沒有官方的API支持。你可以看到完整的API規範:https://developers.google.com/+/api/latest/people

對於PHP,在people.get調用如下:

$me = $plus->people->get('me'); 
print "Kind: {$me['kind']}\n"; 

此示例假設一個客戶對象被創建。要了解有關創建客戶端的更多信息,請查看啓動器:https://github.com/googleplus/gplus-quickstart-php

相關問題