내가 따라야 할 가이드는 여기 ->http://framework.zend.com/manual/1.12/en/zend.gdata.gapps.html#zend.gdata.gapps.groups.creating입니다. 그룹을 만들고 "액세스 수준"을 지정하려고하지만 허용되는 값이 무엇인지에 대한 문서가 없습니다.Google 그룹스 - Zend API - 액세스 수준 설정
<?php
// This should point to the exact path of the file being imported
require_once '/Users/myuser/Source/Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Gapps');
if (count($argv) == 1) {
echo "Usage: ".$argv[0]." \"group id\" \"group name\" \"description\" \"email permission\"\n";
die;
}
// Arguments passed in on the command line
$groupId = $argv[1];
$groupName = $argv[2];
$groupDesc = null;
if (count($argv) > 3) {
$groupDesc = $argv[3];
}
$groupPermission = null;
if (count($argv) > 4) {
$groupPermission = $argv[4];
}
// Set this to your gapps email/pass
$email = "[email protected]";
$password = "foobar";
// Gapps domain
$domain = "domain.com";
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password, Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
$gdata = new Zend_Gdata_Gapps($client, $domain);
$entry = $gdata->createGroup($groupId, $groupName, $groupDesc, $groupPermission);
?>
이 다음에 Gapps.php 파일에서 "이 createGroup"에 대한 설명이 될 때 :
/**
* Create a new group.
* @param string $groupId A unique identifier for the group
* @param string $groupName The name of the group
* @param string $description A description of the group
* @param string $emailPermission The subscription permission of the group
* @return Zend_Gdata_Gapps_GroupEntry The group entry as created on the server.
*
당신이 역할 "에서 Google Apps에서 보면 여기
내가 쓴 스크립트입니다 & 사용 권한 "팀, 알림 전용, 제한된, 사용자 지정의 4 가지 액세스 수준이 정의되어 있습니다. "custom"외에도 그룹을 성공적으로 설정하는 emailPermission 필드에 값을 보낼 수 없었습니다. 지금까지 "소유자"또는 "회원"을 보낼 수 있으며 "소유자"또는 "회원"이 "그룹에 전자 메일 보내기"옆에 체크 표시가있는 "사용자 지정"액세스 수준을 선택합니다.친숙한 사람이 있습니까? 이를 위해 gapps 도메인에 대해이 스크립트를 실행하기 위해서는 수퍼 관리자 권한을 가지고 프로비저닝 API를 활성화해야합니다.