PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.0.3
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.0.3
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / GroupsMigration.php

GroupsMigration.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.0.3, at lib/Google/Service/GroupsMigration.php

130 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18 /**
19 * Service definition for GroupsMigration (v1).
20 *
21 * <p>
22 * Groups Migration Api.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Analytify_Google_Service_GroupsMigration extends Analytify_Google_Service
33 {
34
35
36 public $archive;
37
38
39 /**
40 * Constructs the internal representation of the GroupsMigration service.
41 *
42 * @param Analytify_Google_Client $client
43 */
44 public function __construct(Analytify_Google_Client $client)
45 {
46 parent::__construct($client);
47 $this->servicePath = 'groups/v1/groups/';
48 $this->version = 'v1';
49 $this->serviceName = 'groupsmigration';
50
51 $this->archive = new Analytify_Google_Service_GroupsMigration_Archive_Resource(
52 $this,
53 $this->serviceName,
54 'archive',
55 array(
56 'methods' => array(
57 'insert' => array(
58 'path' => '{groupId}/archive',
59 'httpMethod' => 'POST',
60 'parameters' => array(
61 'groupId' => array(
62 'location' => 'path',
63 'type' => 'string',
64 'required' => true,
65 ),
66 ),
67 ),
68 )
69 )
70 );
71 }
72 }
73
74
75 /**
76 * The "archive" collection of methods.
77 * Typical usage is:
78 * <code>
79 * $groupsmigrationService = new Analytify_Google_Service_GroupsMigration(...);
80 * $archive = $groupsmigrationService->archive;
81 * </code>
82 */
83 class Analytify_Google_Service_GroupsMigration_Archive_Resource extends Analytify_Google_Service_Resource
84 {
85
86 /**
87 * Inserts a new mail into the archive of the Google group. (archive.insert)
88 *
89 * @param string $groupId
90 * The group ID
91 * @param array $optParams Optional parameters.
92 * @return Analytify_Google_Service_GroupsMigration_Groups
93 */
94 public function insert($groupId, $optParams = array())
95 {
96 $params = array('groupId' => $groupId);
97 $params = array_merge($params, $optParams);
98 return $this->call('insert', array($params), "Analytify_Google_Service_GroupsMigration_Groups");
99 }
100 }
101
102
103
104
105 class Analytify_Google_Service_GroupsMigration_Groups extends Analytify_Google_Model
106 {
107 public $kind;
108 public $responseCode;
109
110 public function setKind($kind)
111 {
112 $this->kind = $kind;
113 }
114
115 public function getKind()
116 {
117 return $this->kind;
118 }
119
120 public function setResponseCode($responseCode)
121 {
122 $this->responseCode = $responseCode;
123 }
124
125 public function getResponseCode()
126 {
127 return $this->responseCode;
128 }
129 }
130