本文整理汇总了PHP中Google_Client::setRequestVisibleActions方法的典型用法代码示例。如果您正苦于以下问题:PHP Google_Client::setRequestVisibleActions方法的具体用法?PHP Google_Client::setRequestVisibleActions怎么用?PHP Google_Client::setRequestVisibleActions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Google_Client
的用法示例。
在下文中一共展示了Google_Client::setRequestVisibleActions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getGoogleClient
private function getGoogleClient()
{
if (isset($this->google_client_id) && isset($this->google_client_secret) && isset($this->google_redirect_url) && isset($this->google_developer_key)) {
$requestVisibleActions = array('http://schemas.google.com/AddActivity', 'http://schemas.google.com/BuyActivity', 'http://schemas.google.com/CheckInActivity', 'http://schemas.google.com/CommentActivity', 'http://schemas.google.com/CreateActivity', 'http://schemas.google.com/DiscoverActivity', 'http://schemas.google.com/ListenActivity', 'http://schemas.google.com/ReserveActivity', 'http://schemas.google.com/ReviewActivity', 'http://schemas.google.com/WantActivity');
$gClient = new Google_Client();
$gClient->setApplicationName('Login to ceri2013.cafe24.com');
$gClient->setClientId($this->google_client_id);
$gClient->setClientSecret($this->google_client_secret);
$gClient->setRedirectUri($this->google_redirect_url);
$gClient->setDeveloperKey($this->google_developer_key);
$gClient->setRequestVisibleActions($requestVisibleActions);
$gClient->setApprovalPrompt('auto');
return $gClient;
}
}