From 5c7f2f17f9c471d306955df457c7cab4e5c6ed3b Mon Sep 17 00:00:00 2001 From: Snap Date: Thu, 16 Apr 2015 14:51:26 -0700 Subject: Google's OpenID Connect method $google_client_id & $google_client_secret must be added to db.inc.php! --- .../src/Google/Service/GroupsMigration.php | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 includes/google-api-php-client-master/src/Google/Service/GroupsMigration.php (limited to 'includes/google-api-php-client-master/src/Google/Service/GroupsMigration.php') diff --git a/includes/google-api-php-client-master/src/Google/Service/GroupsMigration.php b/includes/google-api-php-client-master/src/Google/Service/GroupsMigration.php new file mode 100644 index 0000000..6aea31c --- /dev/null +++ b/includes/google-api-php-client-master/src/Google/Service/GroupsMigration.php @@ -0,0 +1,129 @@ + + * Groups Migration Api.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_GroupsMigration extends Google_Service +{ + /** Manage messages in groups on your domain. */ + const APPS_GROUPS_MIGRATION = + "https://www.googleapis.com/auth/apps.groups.migration"; + + public $archive; + + + /** + * Constructs the internal representation of the GroupsMigration service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'groups/v1/groups/'; + $this->version = 'v1'; + $this->serviceName = 'groupsmigration'; + + $this->archive = new Google_Service_GroupsMigration_Archive_Resource( + $this, + $this->serviceName, + 'archive', + array( + 'methods' => array( + 'insert' => array( + 'path' => '{groupId}/archive', + 'httpMethod' => 'POST', + 'parameters' => array( + 'groupId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "archive" collection of methods. + * Typical usage is: + * + * $groupsmigrationService = new Google_Service_GroupsMigration(...); + * $archive = $groupsmigrationService->archive; + * + */ +class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource +{ + + /** + * Inserts a new mail into the archive of the Google group. (archive.insert) + * + * @param string $groupId The group ID + * @param array $optParams Optional parameters. + * @return Google_Service_GroupsMigration_Groups + */ + public function insert($groupId, $optParams = array()) + { + $params = array('groupId' => $groupId); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups"); + } +} + + + + +class Google_Service_GroupsMigration_Groups extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $responseCode; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setResponseCode($responseCode) + { + $this->responseCode = $responseCode; + } + public function getResponseCode() + { + return $this->responseCode; + } +} -- cgit v1.2.3