本文整理匯總了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;
}
}