| 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 Gmail (v1). |
| 20 |
* |
| 21 |
* <p> |
| 22 |
* The Gmail REST API. |
| 23 |
* </p> |
| 24 |
* |
| 25 |
* <p> |
| 26 |
* For more information about this service, see the API |
| 27 |
* <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a> |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @author Google, Inc. |
| 31 |
*/ |
| 32 |
class Analytify_Google_Service_Gmail extends Analytify_Google_Service |
| 33 |
{ |
| 34 |
/** View and manage your mail. */ |
| 35 |
const MAIL_Analytify_Google_COM = "https://mail.google.com"; |
| 36 |
/** Manage drafts and send emails. */ |
| 37 |
const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; |
| 38 |
/** View and modify but not delete your email. */ |
| 39 |
const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; |
| 40 |
/** View your emails messages and settings. */ |
| 41 |
const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; |
| 42 |
|
| 43 |
public $users_drafts; |
| 44 |
public $users_history; |
| 45 |
public $users_labels; |
| 46 |
public $users_messages; |
| 47 |
public $users_messages_attachments; |
| 48 |
public $users_threads; |
| 49 |
|
| 50 |
|
| 51 |
/** |
| 52 |
* Constructs the internal representation of the Gmail service. |
| 53 |
* |
| 54 |
* @param Analytify_Google_Client $client |
| 55 |
*/ |
| 56 |
public function __construct(Analytify_Google_Client $client) |
| 57 |
{ |
| 58 |
parent::__construct($client); |
| 59 |
$this->servicePath = 'gmail/v1/users/'; |
| 60 |
$this->version = 'v1'; |
| 61 |
$this->serviceName = 'gmail'; |
| 62 |
|
| 63 |
$this->users_drafts = new Analytify_Google_Service_Gmail_UsersDrafts_Resource( |
| 64 |
$this, |
| 65 |
$this->serviceName, |
| 66 |
'drafts', |
| 67 |
array( |
| 68 |
'methods' => array( |
| 69 |
'create' => array( |
| 70 |
'path' => '{userId}/drafts', |
| 71 |
'httpMethod' => 'POST', |
| 72 |
'parameters' => array( |
| 73 |
'userId' => array( |
| 74 |
'location' => 'path', |
| 75 |
'type' => 'string', |
| 76 |
'required' => true, |
| 77 |
), |
| 78 |
), |
| 79 |
),'delete' => array( |
| 80 |
'path' => '{userId}/drafts/{id}', |
| 81 |
'httpMethod' => 'DELETE', |
| 82 |
'parameters' => array( |
| 83 |
'userId' => array( |
| 84 |
'location' => 'path', |
| 85 |
'type' => 'string', |
| 86 |
'required' => true, |
| 87 |
), |
| 88 |
'id' => array( |
| 89 |
'location' => 'path', |
| 90 |
'type' => 'string', |
| 91 |
'required' => true, |
| 92 |
), |
| 93 |
), |
| 94 |
),'get' => array( |
| 95 |
'path' => '{userId}/drafts/{id}', |
| 96 |
'httpMethod' => 'GET', |
| 97 |
'parameters' => array( |
| 98 |
'userId' => array( |
| 99 |
'location' => 'path', |
| 100 |
'type' => 'string', |
| 101 |
'required' => true, |
| 102 |
), |
| 103 |
'id' => array( |
| 104 |
'location' => 'path', |
| 105 |
'type' => 'string', |
| 106 |
'required' => true, |
| 107 |
), |
| 108 |
'format' => array( |
| 109 |
'location' => 'query', |
| 110 |
'type' => 'string', |
| 111 |
), |
| 112 |
), |
| 113 |
),'list' => array( |
| 114 |
'path' => '{userId}/drafts', |
| 115 |
'httpMethod' => 'GET', |
| 116 |
'parameters' => array( |
| 117 |
'userId' => array( |
| 118 |
'location' => 'path', |
| 119 |
'type' => 'string', |
| 120 |
'required' => true, |
| 121 |
), |
| 122 |
'pageToken' => array( |
| 123 |
'location' => 'query', |
| 124 |
'type' => 'string', |
| 125 |
), |
| 126 |
'maxResults' => array( |
| 127 |
'location' => 'query', |
| 128 |
'type' => 'integer', |
| 129 |
), |
| 130 |
), |
| 131 |
),'send' => array( |
| 132 |
'path' => '{userId}/drafts/send', |
| 133 |
'httpMethod' => 'POST', |
| 134 |
'parameters' => array( |
| 135 |
'userId' => array( |
| 136 |
'location' => 'path', |
| 137 |
'type' => 'string', |
| 138 |
'required' => true, |
| 139 |
), |
| 140 |
), |
| 141 |
),'update' => array( |
| 142 |
'path' => '{userId}/drafts/{id}', |
| 143 |
'httpMethod' => 'PUT', |
| 144 |
'parameters' => array( |
| 145 |
'userId' => array( |
| 146 |
'location' => 'path', |
| 147 |
'type' => 'string', |
| 148 |
'required' => true, |
| 149 |
), |
| 150 |
'id' => array( |
| 151 |
'location' => 'path', |
| 152 |
'type' => 'string', |
| 153 |
'required' => true, |
| 154 |
), |
| 155 |
), |
| 156 |
), |
| 157 |
) |
| 158 |
) |
| 159 |
); |
| 160 |
$this->users_history = new Analytify_Google_Service_Gmail_UsersHistory_Resource( |
| 161 |
$this, |
| 162 |
$this->serviceName, |
| 163 |
'history', |
| 164 |
array( |
| 165 |
'methods' => array( |
| 166 |
'list' => array( |
| 167 |
'path' => '{userId}/history', |
| 168 |
'httpMethod' => 'GET', |
| 169 |
'parameters' => array( |
| 170 |
'userId' => array( |
| 171 |
'location' => 'path', |
| 172 |
'type' => 'string', |
| 173 |
'required' => true, |
| 174 |
), |
| 175 |
'pageToken' => array( |
| 176 |
'location' => 'query', |
| 177 |
'type' => 'string', |
| 178 |
), |
| 179 |
'maxResults' => array( |
| 180 |
'location' => 'query', |
| 181 |
'type' => 'integer', |
| 182 |
), |
| 183 |
'labelId' => array( |
| 184 |
'location' => 'query', |
| 185 |
'type' => 'string', |
| 186 |
), |
| 187 |
'startHistoryId' => array( |
| 188 |
'location' => 'query', |
| 189 |
'type' => 'string', |
| 190 |
), |
| 191 |
), |
| 192 |
), |
| 193 |
) |
| 194 |
) |
| 195 |
); |
| 196 |
$this->users_labels = new Analytify_Google_Service_Gmail_UsersLabels_Resource( |
| 197 |
$this, |
| 198 |
$this->serviceName, |
| 199 |
'labels', |
| 200 |
array( |
| 201 |
'methods' => array( |
| 202 |
'create' => array( |
| 203 |
'path' => '{userId}/labels', |
| 204 |
'httpMethod' => 'POST', |
| 205 |
'parameters' => array( |
| 206 |
'userId' => array( |
| 207 |
'location' => 'path', |
| 208 |
'type' => 'string', |
| 209 |
'required' => true, |
| 210 |
), |
| 211 |
), |
| 212 |
),'delete' => array( |
| 213 |
'path' => '{userId}/labels/{id}', |
| 214 |
'httpMethod' => 'DELETE', |
| 215 |
'parameters' => array( |
| 216 |
'userId' => array( |
| 217 |
'location' => 'path', |
| 218 |
'type' => 'string', |
| 219 |
'required' => true, |
| 220 |
), |
| 221 |
'id' => array( |
| 222 |
'location' => 'path', |
| 223 |
'type' => 'string', |
| 224 |
'required' => true, |
| 225 |
), |
| 226 |
), |
| 227 |
),'get' => array( |
| 228 |
'path' => '{userId}/labels/{id}', |
| 229 |
'httpMethod' => 'GET', |
| 230 |
'parameters' => array( |
| 231 |
'userId' => array( |
| 232 |
'location' => 'path', |
| 233 |
'type' => 'string', |
| 234 |
'required' => true, |
| 235 |
), |
| 236 |
'id' => array( |
| 237 |
'location' => 'path', |
| 238 |
'type' => 'string', |
| 239 |
'required' => true, |
| 240 |
), |
| 241 |
), |
| 242 |
),'list' => array( |
| 243 |
'path' => '{userId}/labels', |
| 244 |
'httpMethod' => 'GET', |
| 245 |
'parameters' => array( |
| 246 |
'userId' => array( |
| 247 |
'location' => 'path', |
| 248 |
'type' => 'string', |
| 249 |
'required' => true, |
| 250 |
), |
| 251 |
), |
| 252 |
),'patch' => array( |
| 253 |
'path' => '{userId}/labels/{id}', |
| 254 |
'httpMethod' => 'PATCH', |
| 255 |
'parameters' => array( |
| 256 |
'userId' => array( |
| 257 |
'location' => 'path', |
| 258 |
'type' => 'string', |
| 259 |
'required' => true, |
| 260 |
), |
| 261 |
'id' => array( |
| 262 |
'location' => 'path', |
| 263 |
'type' => 'string', |
| 264 |
'required' => true, |
| 265 |
), |
| 266 |
), |
| 267 |
),'update' => array( |
| 268 |
'path' => '{userId}/labels/{id}', |
| 269 |
'httpMethod' => 'PUT', |
| 270 |
'parameters' => array( |
| 271 |
'userId' => array( |
| 272 |
'location' => 'path', |
| 273 |
'type' => 'string', |
| 274 |
'required' => true, |
| 275 |
), |
| 276 |
'id' => array( |
| 277 |
'location' => 'path', |
| 278 |
'type' => 'string', |
| 279 |
'required' => true, |
| 280 |
), |
| 281 |
), |
| 282 |
), |
| 283 |
) |
| 284 |
) |
| 285 |
); |
| 286 |
$this->users_messages = new Analytify_Google_Service_Gmail_UsersMessages_Resource( |
| 287 |
$this, |
| 288 |
$this->serviceName, |
| 289 |
'messages', |
| 290 |
array( |
| 291 |
'methods' => array( |
| 292 |
'delete' => array( |
| 293 |
'path' => '{userId}/messages/{id}', |
| 294 |
'httpMethod' => 'DELETE', |
| 295 |
'parameters' => array( |
| 296 |
'userId' => array( |
| 297 |
'location' => 'path', |
| 298 |
'type' => 'string', |
| 299 |
'required' => true, |
| 300 |
), |
| 301 |
'id' => array( |
| 302 |
'location' => 'path', |
| 303 |
'type' => 'string', |
| 304 |
'required' => true, |
| 305 |
), |
| 306 |
), |
| 307 |
),'get' => array( |
| 308 |
'path' => '{userId}/messages/{id}', |
| 309 |
'httpMethod' => 'GET', |
| 310 |
'parameters' => array( |
| 311 |
'userId' => array( |
| 312 |
'location' => 'path', |
| 313 |
'type' => 'string', |
| 314 |
'required' => true, |
| 315 |
), |
| 316 |
'id' => array( |
| 317 |
'location' => 'path', |
| 318 |
'type' => 'string', |
| 319 |
'required' => true, |
| 320 |
), |
| 321 |
'format' => array( |
| 322 |
'location' => 'query', |
| 323 |
'type' => 'string', |
| 324 |
), |
| 325 |
), |
| 326 |
),'import' => array( |
| 327 |
'path' => '{userId}/messages/import', |
| 328 |
'httpMethod' => 'POST', |
| 329 |
'parameters' => array( |
| 330 |
'userId' => array( |
| 331 |
'location' => 'path', |
| 332 |
'type' => 'string', |
| 333 |
'required' => true, |
| 334 |
), |
| 335 |
), |
| 336 |
),'insert' => array( |
| 337 |
'path' => '{userId}/messages', |
| 338 |
'httpMethod' => 'POST', |
| 339 |
'parameters' => array( |
| 340 |
'userId' => array( |
| 341 |
'location' => 'path', |
| 342 |
'type' => 'string', |
| 343 |
'required' => true, |
| 344 |
), |
| 345 |
), |
| 346 |
),'list' => array( |
| 347 |
'path' => '{userId}/messages', |
| 348 |
'httpMethod' => 'GET', |
| 349 |
'parameters' => array( |
| 350 |
'userId' => array( |
| 351 |
'location' => 'path', |
| 352 |
'type' => 'string', |
| 353 |
'required' => true, |
| 354 |
), |
| 355 |
'maxResults' => array( |
| 356 |
'location' => 'query', |
| 357 |
'type' => 'integer', |
| 358 |
), |
| 359 |
'q' => array( |
| 360 |
'location' => 'query', |
| 361 |
'type' => 'string', |
| 362 |
), |
| 363 |
'pageToken' => array( |
| 364 |
'location' => 'query', |
| 365 |
'type' => 'string', |
| 366 |
), |
| 367 |
'includeSpamTrash' => array( |
| 368 |
'location' => 'query', |
| 369 |
'type' => 'boolean', |
| 370 |
), |
| 371 |
'labelIds' => array( |
| 372 |
'location' => 'query', |
| 373 |
'type' => 'string', |
| 374 |
'repeated' => true, |
| 375 |
), |
| 376 |
), |
| 377 |
),'modify' => array( |
| 378 |
'path' => '{userId}/messages/{id}/modify', |
| 379 |
'httpMethod' => 'POST', |
| 380 |
'parameters' => array( |
| 381 |
'userId' => array( |
| 382 |
'location' => 'path', |
| 383 |
'type' => 'string', |
| 384 |
'required' => true, |
| 385 |
), |
| 386 |
'id' => array( |
| 387 |
'location' => 'path', |
| 388 |
'type' => 'string', |
| 389 |
'required' => true, |
| 390 |
), |
| 391 |
), |
| 392 |
),'send' => array( |
| 393 |
'path' => '{userId}/messages/send', |
| 394 |
'httpMethod' => 'POST', |
| 395 |
'parameters' => array( |
| 396 |
'userId' => array( |
| 397 |
'location' => 'path', |
| 398 |
'type' => 'string', |
| 399 |
'required' => true, |
| 400 |
), |
| 401 |
), |
| 402 |
),'trash' => array( |
| 403 |
'path' => '{userId}/messages/{id}/trash', |
| 404 |
'httpMethod' => 'POST', |
| 405 |
'parameters' => array( |
| 406 |
'userId' => array( |
| 407 |
'location' => 'path', |
| 408 |
'type' => 'string', |
| 409 |
'required' => true, |
| 410 |
), |
| 411 |
'id' => array( |
| 412 |
'location' => 'path', |
| 413 |
'type' => 'string', |
| 414 |
'required' => true, |
| 415 |
), |
| 416 |
), |
| 417 |
),'untrash' => array( |
| 418 |
'path' => '{userId}/messages/{id}/untrash', |
| 419 |
'httpMethod' => 'POST', |
| 420 |
'parameters' => array( |
| 421 |
'userId' => array( |
| 422 |
'location' => 'path', |
| 423 |
'type' => 'string', |
| 424 |
'required' => true, |
| 425 |
), |
| 426 |
'id' => array( |
| 427 |
'location' => 'path', |
| 428 |
'type' => 'string', |
| 429 |
'required' => true, |
| 430 |
), |
| 431 |
), |
| 432 |
), |
| 433 |
) |
| 434 |
) |
| 435 |
); |
| 436 |
$this->users_messages_attachments = new Analytify_Google_Service_Gmail_UsersMessagesAttachments_Resource( |
| 437 |
$this, |
| 438 |
$this->serviceName, |
| 439 |
'attachments', |
| 440 |
array( |
| 441 |
'methods' => array( |
| 442 |
'get' => array( |
| 443 |
'path' => '{userId}/messages/{messageId}/attachments/{id}', |
| 444 |
'httpMethod' => 'GET', |
| 445 |
'parameters' => array( |
| 446 |
'userId' => array( |
| 447 |
'location' => 'path', |
| 448 |
'type' => 'string', |
| 449 |
'required' => true, |
| 450 |
), |
| 451 |
'messageId' => array( |
| 452 |
'location' => 'path', |
| 453 |
'type' => 'string', |
| 454 |
'required' => true, |
| 455 |
), |
| 456 |
'id' => array( |
| 457 |
'location' => 'path', |
| 458 |
'type' => 'string', |
| 459 |
'required' => true, |
| 460 |
), |
| 461 |
), |
| 462 |
), |
| 463 |
) |
| 464 |
) |
| 465 |
); |
| 466 |
$this->users_threads = new Analytify_Google_Service_Gmail_UsersThreads_Resource( |
| 467 |
$this, |
| 468 |
$this->serviceName, |
| 469 |
'threads', |
| 470 |
array( |
| 471 |
'methods' => array( |
| 472 |
'delete' => array( |
| 473 |
'path' => '{userId}/threads/{id}', |
| 474 |
'httpMethod' => 'DELETE', |
| 475 |
'parameters' => array( |
| 476 |
'userId' => array( |
| 477 |
'location' => 'path', |
| 478 |
'type' => 'string', |
| 479 |
'required' => true, |
| 480 |
), |
| 481 |
'id' => array( |
| 482 |
'location' => 'path', |
| 483 |
'type' => 'string', |
| 484 |
'required' => true, |
| 485 |
), |
| 486 |
), |
| 487 |
),'get' => array( |
| 488 |
'path' => '{userId}/threads/{id}', |
| 489 |
'httpMethod' => 'GET', |
| 490 |
'parameters' => array( |
| 491 |
'userId' => array( |
| 492 |
'location' => 'path', |
| 493 |
'type' => 'string', |
| 494 |
'required' => true, |
| 495 |
), |
| 496 |
'id' => array( |
| 497 |
'location' => 'path', |
| 498 |
'type' => 'string', |
| 499 |
'required' => true, |
| 500 |
), |
| 501 |
), |
| 502 |
),'list' => array( |
| 503 |
'path' => '{userId}/threads', |
| 504 |
'httpMethod' => 'GET', |
| 505 |
'parameters' => array( |
| 506 |
'userId' => array( |
| 507 |
'location' => 'path', |
| 508 |
'type' => 'string', |
| 509 |
'required' => true, |
| 510 |
), |
| 511 |
'maxResults' => array( |
| 512 |
'location' => 'query', |
| 513 |
'type' => 'integer', |
| 514 |
), |
| 515 |
'q' => array( |
| 516 |
'location' => 'query', |
| 517 |
'type' => 'string', |
| 518 |
), |
| 519 |
'pageToken' => array( |
| 520 |
'location' => 'query', |
| 521 |
'type' => 'string', |
| 522 |
), |
| 523 |
'includeSpamTrash' => array( |
| 524 |
'location' => 'query', |
| 525 |
'type' => 'boolean', |
| 526 |
), |
| 527 |
'labelIds' => array( |
| 528 |
'location' => 'query', |
| 529 |
'type' => 'string', |
| 530 |
'repeated' => true, |
| 531 |
), |
| 532 |
), |
| 533 |
),'modify' => array( |
| 534 |
'path' => '{userId}/threads/{id}/modify', |
| 535 |
'httpMethod' => 'POST', |
| 536 |
'parameters' => array( |
| 537 |
'userId' => array( |
| 538 |
'location' => 'path', |
| 539 |
'type' => 'string', |
| 540 |
'required' => true, |
| 541 |
), |
| 542 |
'id' => array( |
| 543 |
'location' => 'path', |
| 544 |
'type' => 'string', |
| 545 |
'required' => true, |
| 546 |
), |
| 547 |
), |
| 548 |
),'trash' => array( |
| 549 |
'path' => '{userId}/threads/{id}/trash', |
| 550 |
'httpMethod' => 'POST', |
| 551 |
'parameters' => array( |
| 552 |
'userId' => array( |
| 553 |
'location' => 'path', |
| 554 |
'type' => 'string', |
| 555 |
'required' => true, |
| 556 |
), |
| 557 |
'id' => array( |
| 558 |
'location' => 'path', |
| 559 |
'type' => 'string', |
| 560 |
'required' => true, |
| 561 |
), |
| 562 |
), |
| 563 |
),'untrash' => array( |
| 564 |
'path' => '{userId}/threads/{id}/untrash', |
| 565 |
'httpMethod' => 'POST', |
| 566 |
'parameters' => array( |
| 567 |
'userId' => array( |
| 568 |
'location' => 'path', |
| 569 |
'type' => 'string', |
| 570 |
'required' => true, |
| 571 |
), |
| 572 |
'id' => array( |
| 573 |
'location' => 'path', |
| 574 |
'type' => 'string', |
| 575 |
'required' => true, |
| 576 |
), |
| 577 |
), |
| 578 |
), |
| 579 |
) |
| 580 |
) |
| 581 |
); |
| 582 |
} |
| 583 |
} |
| 584 |
|
| 585 |
|
| 586 |
/** |
| 587 |
* The "users" collection of methods. |
| 588 |
* Typical usage is: |
| 589 |
* <code> |
| 590 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 591 |
* $users = $gmailService->users; |
| 592 |
* </code> |
| 593 |
*/ |
| 594 |
class Analytify_Google_Service_Gmail_Users_Resource extends Analytify_Google_Service_Resource |
| 595 |
{ |
| 596 |
|
| 597 |
} |
| 598 |
|
| 599 |
/** |
| 600 |
* The "drafts" collection of methods. |
| 601 |
* Typical usage is: |
| 602 |
* <code> |
| 603 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 604 |
* $drafts = $gmailService->drafts; |
| 605 |
* </code> |
| 606 |
*/ |
| 607 |
class Analytify_Google_Service_Gmail_UsersDrafts_Resource extends Analytify_Google_Service_Resource |
| 608 |
{ |
| 609 |
|
| 610 |
/** |
| 611 |
* Creates a new draft with the DRAFT label. (drafts.create) |
| 612 |
* |
| 613 |
* @param string $userId |
| 614 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 615 |
* @param Analytify_Google_Draft $postBody |
| 616 |
* @param array $optParams Optional parameters. |
| 617 |
* @return Analytify_Google_Service_Gmail_Draft |
| 618 |
*/ |
| 619 |
public function create($userId, Analytify_Google_Service_Gmail_Draft $postBody, $optParams = array()) |
| 620 |
{ |
| 621 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 622 |
$params = array_merge($params, $optParams); |
| 623 |
return $this->call('create', array($params), "Analytify_Google_Service_Gmail_Draft"); |
| 624 |
} |
| 625 |
/** |
| 626 |
* Immediately and permanently deletes the specified draft. Does not simply |
| 627 |
* trash it. (drafts.delete) |
| 628 |
* |
| 629 |
* @param string $userId |
| 630 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 631 |
* @param string $id |
| 632 |
* The ID of the draft to delete. |
| 633 |
* @param array $optParams Optional parameters. |
| 634 |
*/ |
| 635 |
public function delete($userId, $id, $optParams = array()) |
| 636 |
{ |
| 637 |
$params = array('userId' => $userId, 'id' => $id); |
| 638 |
$params = array_merge($params, $optParams); |
| 639 |
return $this->call('delete', array($params)); |
| 640 |
} |
| 641 |
/** |
| 642 |
* Gets the specified draft. (drafts.get) |
| 643 |
* |
| 644 |
* @param string $userId |
| 645 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 646 |
* @param string $id |
| 647 |
* The ID of the draft to retrieve. |
| 648 |
* @param array $optParams Optional parameters. |
| 649 |
* |
| 650 |
* @opt_param string format |
| 651 |
* The format to return the draft in. |
| 652 |
* @return Analytify_Google_Service_Gmail_Draft |
| 653 |
*/ |
| 654 |
public function get($userId, $id, $optParams = array()) |
| 655 |
{ |
| 656 |
$params = array('userId' => $userId, 'id' => $id); |
| 657 |
$params = array_merge($params, $optParams); |
| 658 |
return $this->call('get', array($params), "Analytify_Google_Service_Gmail_Draft"); |
| 659 |
} |
| 660 |
/** |
| 661 |
* Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) |
| 662 |
* |
| 663 |
* @param string $userId |
| 664 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 665 |
* @param array $optParams Optional parameters. |
| 666 |
* |
| 667 |
* @opt_param string pageToken |
| 668 |
* Page token to retrieve a specific page of results in the list. |
| 669 |
* @opt_param string maxResults |
| 670 |
* Maximum number of drafts to return. |
| 671 |
* @return Analytify_Google_Service_Gmail_ListDraftsResponse |
| 672 |
*/ |
| 673 |
public function listUsersDrafts($userId, $optParams = array()) |
| 674 |
{ |
| 675 |
$params = array('userId' => $userId); |
| 676 |
$params = array_merge($params, $optParams); |
| 677 |
return $this->call('list', array($params), "Analytify_Google_Service_Gmail_ListDraftsResponse"); |
| 678 |
} |
| 679 |
/** |
| 680 |
* Sends the specified, existing draft to the recipients in the To, Cc, and Bcc |
| 681 |
* headers. (drafts.send) |
| 682 |
* |
| 683 |
* @param string $userId |
| 684 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 685 |
* @param Analytify_Google_Draft $postBody |
| 686 |
* @param array $optParams Optional parameters. |
| 687 |
* @return Analytify_Google_Service_Gmail_Message |
| 688 |
*/ |
| 689 |
public function send($userId, Analytify_Google_Service_Gmail_Draft $postBody, $optParams = array()) |
| 690 |
{ |
| 691 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 692 |
$params = array_merge($params, $optParams); |
| 693 |
return $this->call('send', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 694 |
} |
| 695 |
/** |
| 696 |
* Replaces a draft's content. (drafts.update) |
| 697 |
* |
| 698 |
* @param string $userId |
| 699 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 700 |
* @param string $id |
| 701 |
* The ID of the draft to update. |
| 702 |
* @param Analytify_Google_Draft $postBody |
| 703 |
* @param array $optParams Optional parameters. |
| 704 |
* @return Analytify_Google_Service_Gmail_Draft |
| 705 |
*/ |
| 706 |
public function update($userId, $id, Analytify_Google_Service_Gmail_Draft $postBody, $optParams = array()) |
| 707 |
{ |
| 708 |
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); |
| 709 |
$params = array_merge($params, $optParams); |
| 710 |
return $this->call('update', array($params), "Analytify_Google_Service_Gmail_Draft"); |
| 711 |
} |
| 712 |
} |
| 713 |
/** |
| 714 |
* The "history" collection of methods. |
| 715 |
* Typical usage is: |
| 716 |
* <code> |
| 717 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 718 |
* $history = $gmailService->history; |
| 719 |
* </code> |
| 720 |
*/ |
| 721 |
class Analytify_Google_Service_Gmail_UsersHistory_Resource extends Analytify_Google_Service_Resource |
| 722 |
{ |
| 723 |
|
| 724 |
/** |
| 725 |
* Lists the history of all changes to the given mailbox. History results are |
| 726 |
* returned in chronological order (increasing historyId). |
| 727 |
* (history.listUsersHistory) |
| 728 |
* |
| 729 |
* @param string $userId |
| 730 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 731 |
* @param array $optParams Optional parameters. |
| 732 |
* |
| 733 |
* @opt_param string pageToken |
| 734 |
* Page token to retrieve a specific page of results in the list. |
| 735 |
* @opt_param string maxResults |
| 736 |
* The maximum number of history records to return. |
| 737 |
* @opt_param string labelId |
| 738 |
* Only return messages with a label matching the ID. |
| 739 |
* @opt_param string startHistoryId |
| 740 |
* Required. Returns history records after the specified startHistoryId. The supplied |
| 741 |
* startHistoryId should be obtained from the historyId of a message, thread, or previous list |
| 742 |
* response. History IDs increase chronologically but are not contiguous with random gaps in |
| 743 |
* between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP |
| 744 |
* 404 error code. A historyId is typically valid for at least a week, but in some circumstances |
| 745 |
* may be valid for only a few hours. If you receive an HTTP 404 error response, your application |
| 746 |
* should perform a full sync. If you receive no nextPageToken in the response, there are no |
| 747 |
* updates to retrieve and you can store the returned historyId for a future request. |
| 748 |
* @return Analytify_Google_Service_Gmail_ListHistoryResponse |
| 749 |
*/ |
| 750 |
public function listUsersHistory($userId, $optParams = array()) |
| 751 |
{ |
| 752 |
$params = array('userId' => $userId); |
| 753 |
$params = array_merge($params, $optParams); |
| 754 |
return $this->call('list', array($params), "Analytify_Google_Service_Gmail_ListHistoryResponse"); |
| 755 |
} |
| 756 |
} |
| 757 |
/** |
| 758 |
* The "labels" collection of methods. |
| 759 |
* Typical usage is: |
| 760 |
* <code> |
| 761 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 762 |
* $labels = $gmailService->labels; |
| 763 |
* </code> |
| 764 |
*/ |
| 765 |
class Analytify_Google_Service_Gmail_UsersLabels_Resource extends Analytify_Google_Service_Resource |
| 766 |
{ |
| 767 |
|
| 768 |
/** |
| 769 |
* Creates a new label. (labels.create) |
| 770 |
* |
| 771 |
* @param string $userId |
| 772 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 773 |
* @param Analytify_Google_Label $postBody |
| 774 |
* @param array $optParams Optional parameters. |
| 775 |
* @return Analytify_Google_Service_Gmail_Label |
| 776 |
*/ |
| 777 |
public function create($userId, Analytify_Google_Service_Gmail_Label $postBody, $optParams = array()) |
| 778 |
{ |
| 779 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 780 |
$params = array_merge($params, $optParams); |
| 781 |
return $this->call('create', array($params), "Analytify_Google_Service_Gmail_Label"); |
| 782 |
} |
| 783 |
/** |
| 784 |
* Immediately and permanently deletes the specified label and removes it from |
| 785 |
* any messages and threads that it is applied to. (labels.delete) |
| 786 |
* |
| 787 |
* @param string $userId |
| 788 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 789 |
* @param string $id |
| 790 |
* The ID of the label to delete. |
| 791 |
* @param array $optParams Optional parameters. |
| 792 |
*/ |
| 793 |
public function delete($userId, $id, $optParams = array()) |
| 794 |
{ |
| 795 |
$params = array('userId' => $userId, 'id' => $id); |
| 796 |
$params = array_merge($params, $optParams); |
| 797 |
return $this->call('delete', array($params)); |
| 798 |
} |
| 799 |
/** |
| 800 |
* Gets the specified label. (labels.get) |
| 801 |
* |
| 802 |
* @param string $userId |
| 803 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 804 |
* @param string $id |
| 805 |
* The ID of the label to retrieve. |
| 806 |
* @param array $optParams Optional parameters. |
| 807 |
* @return Analytify_Google_Service_Gmail_Label |
| 808 |
*/ |
| 809 |
public function get($userId, $id, $optParams = array()) |
| 810 |
{ |
| 811 |
$params = array('userId' => $userId, 'id' => $id); |
| 812 |
$params = array_merge($params, $optParams); |
| 813 |
return $this->call('get', array($params), "Analytify_Google_Service_Gmail_Label"); |
| 814 |
} |
| 815 |
/** |
| 816 |
* Lists all labels in the user's mailbox. (labels.listUsersLabels) |
| 817 |
* |
| 818 |
* @param string $userId |
| 819 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 820 |
* @param array $optParams Optional parameters. |
| 821 |
* @return Analytify_Google_Service_Gmail_ListLabelsResponse |
| 822 |
*/ |
| 823 |
public function listUsersLabels($userId, $optParams = array()) |
| 824 |
{ |
| 825 |
$params = array('userId' => $userId); |
| 826 |
$params = array_merge($params, $optParams); |
| 827 |
return $this->call('list', array($params), "Analytify_Google_Service_Gmail_ListLabelsResponse"); |
| 828 |
} |
| 829 |
/** |
| 830 |
* Updates the specified label. This method supports patch semantics. |
| 831 |
* (labels.patch) |
| 832 |
* |
| 833 |
* @param string $userId |
| 834 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 835 |
* @param string $id |
| 836 |
* The ID of the label to update. |
| 837 |
* @param Analytify_Google_Label $postBody |
| 838 |
* @param array $optParams Optional parameters. |
| 839 |
* @return Analytify_Google_Service_Gmail_Label |
| 840 |
*/ |
| 841 |
public function patch($userId, $id, Analytify_Google_Service_Gmail_Label $postBody, $optParams = array()) |
| 842 |
{ |
| 843 |
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); |
| 844 |
$params = array_merge($params, $optParams); |
| 845 |
return $this->call('patch', array($params), "Analytify_Google_Service_Gmail_Label"); |
| 846 |
} |
| 847 |
/** |
| 848 |
* Updates the specified label. (labels.update) |
| 849 |
* |
| 850 |
* @param string $userId |
| 851 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 852 |
* @param string $id |
| 853 |
* The ID of the label to update. |
| 854 |
* @param Analytify_Google_Label $postBody |
| 855 |
* @param array $optParams Optional parameters. |
| 856 |
* @return Analytify_Google_Service_Gmail_Label |
| 857 |
*/ |
| 858 |
public function update($userId, $id, Analytify_Google_Service_Gmail_Label $postBody, $optParams = array()) |
| 859 |
{ |
| 860 |
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); |
| 861 |
$params = array_merge($params, $optParams); |
| 862 |
return $this->call('update', array($params), "Analytify_Google_Service_Gmail_Label"); |
| 863 |
} |
| 864 |
} |
| 865 |
/** |
| 866 |
* The "messages" collection of methods. |
| 867 |
* Typical usage is: |
| 868 |
* <code> |
| 869 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 870 |
* $messages = $gmailService->messages; |
| 871 |
* </code> |
| 872 |
*/ |
| 873 |
class Analytify_Google_Service_Gmail_UsersMessages_Resource extends Analytify_Google_Service_Resource |
| 874 |
{ |
| 875 |
|
| 876 |
/** |
| 877 |
* Immediately and permanently deletes the specified message. This operation |
| 878 |
* cannot be undone. Prefer messages.trash instead. (messages.delete) |
| 879 |
* |
| 880 |
* @param string $userId |
| 881 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 882 |
* @param string $id |
| 883 |
* The ID of the message to delete. |
| 884 |
* @param array $optParams Optional parameters. |
| 885 |
*/ |
| 886 |
public function delete($userId, $id, $optParams = array()) |
| 887 |
{ |
| 888 |
$params = array('userId' => $userId, 'id' => $id); |
| 889 |
$params = array_merge($params, $optParams); |
| 890 |
return $this->call('delete', array($params)); |
| 891 |
} |
| 892 |
/** |
| 893 |
* Gets the specified message. (messages.get) |
| 894 |
* |
| 895 |
* @param string $userId |
| 896 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 897 |
* @param string $id |
| 898 |
* The ID of the message to retrieve. |
| 899 |
* @param array $optParams Optional parameters. |
| 900 |
* |
| 901 |
* @opt_param string format |
| 902 |
* The format to return the message in. |
| 903 |
* @return Analytify_Google_Service_Gmail_Message |
| 904 |
*/ |
| 905 |
public function get($userId, $id, $optParams = array()) |
| 906 |
{ |
| 907 |
$params = array('userId' => $userId, 'id' => $id); |
| 908 |
$params = array_merge($params, $optParams); |
| 909 |
return $this->call('get', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 910 |
} |
| 911 |
/** |
| 912 |
* Directly imports a message into only this user's mailbox, similar to |
| 913 |
* receiving via SMTP. Does not send a message. (messages.import) |
| 914 |
* |
| 915 |
* @param string $userId |
| 916 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 917 |
* @param Analytify_Google_Message $postBody |
| 918 |
* @param array $optParams Optional parameters. |
| 919 |
* @return Analytify_Google_Service_Gmail_Message |
| 920 |
*/ |
| 921 |
public function import($userId, Analytify_Google_Service_Gmail_Message $postBody, $optParams = array()) |
| 922 |
{ |
| 923 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 924 |
$params = array_merge($params, $optParams); |
| 925 |
return $this->call('import', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 926 |
} |
| 927 |
/** |
| 928 |
* Directly inserts a message into only this user's mailbox. Does not send a |
| 929 |
* message. (messages.insert) |
| 930 |
* |
| 931 |
* @param string $userId |
| 932 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 933 |
* @param Analytify_Google_Message $postBody |
| 934 |
* @param array $optParams Optional parameters. |
| 935 |
* @return Analytify_Google_Service_Gmail_Message |
| 936 |
*/ |
| 937 |
public function insert($userId, Analytify_Google_Service_Gmail_Message $postBody, $optParams = array()) |
| 938 |
{ |
| 939 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 940 |
$params = array_merge($params, $optParams); |
| 941 |
return $this->call('insert', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 942 |
} |
| 943 |
/** |
| 944 |
* Lists the messages in the user's mailbox. (messages.listUsersMessages) |
| 945 |
* |
| 946 |
* @param string $userId |
| 947 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 948 |
* @param array $optParams Optional parameters. |
| 949 |
* |
| 950 |
* @opt_param string maxResults |
| 951 |
* Maximum number of messages to return. |
| 952 |
* @opt_param string q |
| 953 |
* Only return messages matching the specified query. Supports the same query format as the Gmail |
| 954 |
* search box. For example, "from:someuser@example.com rfc822msgid: is:unread". |
| 955 |
* @opt_param string pageToken |
| 956 |
* Page token to retrieve a specific page of results in the list. |
| 957 |
* @opt_param bool includeSpamTrash |
| 958 |
* Include messages from SPAM and TRASH in the results. |
| 959 |
* @opt_param string labelIds |
| 960 |
* Only return messages with labels that match all of the specified label IDs. |
| 961 |
* @return Analytify_Google_Service_Gmail_ListMessagesResponse |
| 962 |
*/ |
| 963 |
public function listUsersMessages($userId, $optParams = array()) |
| 964 |
{ |
| 965 |
$params = array('userId' => $userId); |
| 966 |
$params = array_merge($params, $optParams); |
| 967 |
return $this->call('list', array($params), "Analytify_Google_Service_Gmail_ListMessagesResponse"); |
| 968 |
} |
| 969 |
/** |
| 970 |
* Modifies the labels on the specified message. (messages.modify) |
| 971 |
* |
| 972 |
* @param string $userId |
| 973 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 974 |
* @param string $id |
| 975 |
* The ID of the message to modify. |
| 976 |
* @param Analytify_Google_ModifyMessageRequest $postBody |
| 977 |
* @param array $optParams Optional parameters. |
| 978 |
* @return Analytify_Google_Service_Gmail_Message |
| 979 |
*/ |
| 980 |
public function modify($userId, $id, Analytify_Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) |
| 981 |
{ |
| 982 |
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); |
| 983 |
$params = array_merge($params, $optParams); |
| 984 |
return $this->call('modify', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 985 |
} |
| 986 |
/** |
| 987 |
* Sends the specified message to the recipients in the To, Cc, and Bcc headers. |
| 988 |
* (messages.send) |
| 989 |
* |
| 990 |
* @param string $userId |
| 991 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 992 |
* @param Analytify_Google_Message $postBody |
| 993 |
* @param array $optParams Optional parameters. |
| 994 |
* @return Analytify_Google_Service_Gmail_Message |
| 995 |
*/ |
| 996 |
public function send($userId, Analytify_Google_Service_Gmail_Message $postBody, $optParams = array()) |
| 997 |
{ |
| 998 |
$params = array('userId' => $userId, 'postBody' => $postBody); |
| 999 |
$params = array_merge($params, $optParams); |
| 1000 |
return $this->call('send', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 1001 |
} |
| 1002 |
/** |
| 1003 |
* Moves the specified message to the trash. (messages.trash) |
| 1004 |
* |
| 1005 |
* @param string $userId |
| 1006 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1007 |
* @param string $id |
| 1008 |
* The ID of the message to Trash. |
| 1009 |
* @param array $optParams Optional parameters. |
| 1010 |
* @return Analytify_Google_Service_Gmail_Message |
| 1011 |
*/ |
| 1012 |
public function trash($userId, $id, $optParams = array()) |
| 1013 |
{ |
| 1014 |
$params = array('userId' => $userId, 'id' => $id); |
| 1015 |
$params = array_merge($params, $optParams); |
| 1016 |
return $this->call('trash', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 1017 |
} |
| 1018 |
/** |
| 1019 |
* Removes the specified message from the trash. (messages.untrash) |
| 1020 |
* |
| 1021 |
* @param string $userId |
| 1022 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1023 |
* @param string $id |
| 1024 |
* The ID of the message to remove from Trash. |
| 1025 |
* @param array $optParams Optional parameters. |
| 1026 |
* @return Analytify_Google_Service_Gmail_Message |
| 1027 |
*/ |
| 1028 |
public function untrash($userId, $id, $optParams = array()) |
| 1029 |
{ |
| 1030 |
$params = array('userId' => $userId, 'id' => $id); |
| 1031 |
$params = array_merge($params, $optParams); |
| 1032 |
return $this->call('untrash', array($params), "Analytify_Google_Service_Gmail_Message"); |
| 1033 |
} |
| 1034 |
} |
| 1035 |
|
| 1036 |
/** |
| 1037 |
* The "attachments" collection of methods. |
| 1038 |
* Typical usage is: |
| 1039 |
* <code> |
| 1040 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 1041 |
* $attachments = $gmailService->attachments; |
| 1042 |
* </code> |
| 1043 |
*/ |
| 1044 |
class Analytify_Google_Service_Gmail_UsersMessagesAttachments_Resource extends Analytify_Google_Service_Resource |
| 1045 |
{ |
| 1046 |
|
| 1047 |
/** |
| 1048 |
* Gets the specified message attachment. (attachments.get) |
| 1049 |
* |
| 1050 |
* @param string $userId |
| 1051 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1052 |
* @param string $messageId |
| 1053 |
* The ID of the message containing the attachment. |
| 1054 |
* @param string $id |
| 1055 |
* The ID of the attachment. |
| 1056 |
* @param array $optParams Optional parameters. |
| 1057 |
* @return Analytify_Google_Service_Gmail_MessagePartBody |
| 1058 |
*/ |
| 1059 |
public function get($userId, $messageId, $id, $optParams = array()) |
| 1060 |
{ |
| 1061 |
$params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); |
| 1062 |
$params = array_merge($params, $optParams); |
| 1063 |
return $this->call('get', array($params), "Analytify_Google_Service_Gmail_MessagePartBody"); |
| 1064 |
} |
| 1065 |
} |
| 1066 |
/** |
| 1067 |
* The "threads" collection of methods. |
| 1068 |
* Typical usage is: |
| 1069 |
* <code> |
| 1070 |
* $gmailService = new Analytify_Google_Service_Gmail(...); |
| 1071 |
* $threads = $gmailService->threads; |
| 1072 |
* </code> |
| 1073 |
*/ |
| 1074 |
class Analytify_Google_Service_Gmail_UsersThreads_Resource extends Analytify_Google_Service_Resource |
| 1075 |
{ |
| 1076 |
|
| 1077 |
/** |
| 1078 |
* Immediately and permanently deletes the specified thread. This operation |
| 1079 |
* cannot be undone. Prefer threads.trash instead. (threads.delete) |
| 1080 |
* |
| 1081 |
* @param string $userId |
| 1082 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1083 |
* @param string $id |
| 1084 |
* ID of the Thread to delete. |
| 1085 |
* @param array $optParams Optional parameters. |
| 1086 |
*/ |
| 1087 |
public function delete($userId, $id, $optParams = array()) |
| 1088 |
{ |
| 1089 |
$params = array('userId' => $userId, 'id' => $id); |
| 1090 |
$params = array_merge($params, $optParams); |
| 1091 |
return $this->call('delete', array($params)); |
| 1092 |
} |
| 1093 |
/** |
| 1094 |
* Gets the specified thread. (threads.get) |
| 1095 |
* |
| 1096 |
* @param string $userId |
| 1097 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1098 |
* @param string $id |
| 1099 |
* The ID of the thread to retrieve. |
| 1100 |
* @param array $optParams Optional parameters. |
| 1101 |
* @return Analytify_Google_Service_Gmail_Thread |
| 1102 |
*/ |
| 1103 |
public function get($userId, $id, $optParams = array()) |
| 1104 |
{ |
| 1105 |
$params = array('userId' => $userId, 'id' => $id); |
| 1106 |
$params = array_merge($params, $optParams); |
| 1107 |
return $this->call('get', array($params), "Analytify_Google_Service_Gmail_Thread"); |
| 1108 |
} |
| 1109 |
/** |
| 1110 |
* Lists the threads in the user's mailbox. (threads.listUsersThreads) |
| 1111 |
* |
| 1112 |
* @param string $userId |
| 1113 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1114 |
* @param array $optParams Optional parameters. |
| 1115 |
* |
| 1116 |
* @opt_param string maxResults |
| 1117 |
* Maximum number of threads to return. |
| 1118 |
* @opt_param string q |
| 1119 |
* Only return threads matching the specified query. Supports the same query format as the Gmail |
| 1120 |
* search box. For example, "from:someuser@example.com rfc822msgid: is:unread". |
| 1121 |
* @opt_param string pageToken |
| 1122 |
* Page token to retrieve a specific page of results in the list. |
| 1123 |
* @opt_param bool includeSpamTrash |
| 1124 |
* Include threads from SPAM and TRASH in the results. |
| 1125 |
* @opt_param string labelIds |
| 1126 |
* Only return threads with labels that match all of the specified label IDs. |
| 1127 |
* @return Analytify_Google_Service_Gmail_ListThreadsResponse |
| 1128 |
*/ |
| 1129 |
public function listUsersThreads($userId, $optParams = array()) |
| 1130 |
{ |
| 1131 |
$params = array('userId' => $userId); |
| 1132 |
$params = array_merge($params, $optParams); |
| 1133 |
return $this->call('list', array($params), "Analytify_Google_Service_Gmail_ListThreadsResponse"); |
| 1134 |
} |
| 1135 |
/** |
| 1136 |
* Modifies the labels applied to the thread. This applies to all messages in |
| 1137 |
* the thread. (threads.modify) |
| 1138 |
* |
| 1139 |
* @param string $userId |
| 1140 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1141 |
* @param string $id |
| 1142 |
* The ID of the thread to modify. |
| 1143 |
* @param Analytify_Google_ModifyThreadRequest $postBody |
| 1144 |
* @param array $optParams Optional parameters. |
| 1145 |
* @return Analytify_Google_Service_Gmail_Thread |
| 1146 |
*/ |
| 1147 |
public function modify($userId, $id, Analytify_Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) |
| 1148 |
{ |
| 1149 |
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); |
| 1150 |
$params = array_merge($params, $optParams); |
| 1151 |
return $this->call('modify', array($params), "Analytify_Google_Service_Gmail_Thread"); |
| 1152 |
} |
| 1153 |
/** |
| 1154 |
* Moves the specified thread to the trash. (threads.trash) |
| 1155 |
* |
| 1156 |
* @param string $userId |
| 1157 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1158 |
* @param string $id |
| 1159 |
* The ID of the thread to Trash. |
| 1160 |
* @param array $optParams Optional parameters. |
| 1161 |
* @return Analytify_Google_Service_Gmail_Thread |
| 1162 |
*/ |
| 1163 |
public function trash($userId, $id, $optParams = array()) |
| 1164 |
{ |
| 1165 |
$params = array('userId' => $userId, 'id' => $id); |
| 1166 |
$params = array_merge($params, $optParams); |
| 1167 |
return $this->call('trash', array($params), "Analytify_Google_Service_Gmail_Thread"); |
| 1168 |
} |
| 1169 |
/** |
| 1170 |
* Removes the specified thread from the trash. (threads.untrash) |
| 1171 |
* |
| 1172 |
* @param string $userId |
| 1173 |
* The user's email address. The special value me can be used to indicate the authenticated user. |
| 1174 |
* @param string $id |
| 1175 |
* The ID of the thread to remove from Trash. |
| 1176 |
* @param array $optParams Optional parameters. |
| 1177 |
* @return Analytify_Google_Service_Gmail_Thread |
| 1178 |
*/ |
| 1179 |
public function untrash($userId, $id, $optParams = array()) |
| 1180 |
{ |
| 1181 |
$params = array('userId' => $userId, 'id' => $id); |
| 1182 |
$params = array_merge($params, $optParams); |
| 1183 |
return $this->call('untrash', array($params), "Analytify_Google_Service_Gmail_Thread"); |
| 1184 |
} |
| 1185 |
} |
| 1186 |
|
| 1187 |
|
| 1188 |
|
| 1189 |
|
| 1190 |
class Analytify_Google_Service_Gmail_Draft extends Analytify_Google_Model |
| 1191 |
{ |
| 1192 |
public $id; |
| 1193 |
protected $messageType = 'Analytify_Google_Service_Gmail_Message'; |
| 1194 |
protected $messageDataType = ''; |
| 1195 |
|
| 1196 |
public function setId($id) |
| 1197 |
{ |
| 1198 |
$this->id = $id; |
| 1199 |
} |
| 1200 |
|
| 1201 |
public function getId() |
| 1202 |
{ |
| 1203 |
return $this->id; |
| 1204 |
} |
| 1205 |
|
| 1206 |
public function setMessage(Analytify_Google_Service_Gmail_Message $message) |
| 1207 |
{ |
| 1208 |
$this->message = $message; |
| 1209 |
} |
| 1210 |
|
| 1211 |
public function getMessage() |
| 1212 |
{ |
| 1213 |
return $this->message; |
| 1214 |
} |
| 1215 |
} |
| 1216 |
|
| 1217 |
class Analytify_Google_Service_Gmail_History extends Analytify_Google_Collection |
| 1218 |
{ |
| 1219 |
public $id; |
| 1220 |
protected $messagesType = 'Analytify_Google_Service_Gmail_Message'; |
| 1221 |
protected $messagesDataType = 'array'; |
| 1222 |
|
| 1223 |
public function setId($id) |
| 1224 |
{ |
| 1225 |
$this->id = $id; |
| 1226 |
} |
| 1227 |
|
| 1228 |
public function getId() |
| 1229 |
{ |
| 1230 |
return $this->id; |
| 1231 |
} |
| 1232 |
|
| 1233 |
public function setMessages($messages) |
| 1234 |
{ |
| 1235 |
$this->messages = $messages; |
| 1236 |
} |
| 1237 |
|
| 1238 |
public function getMessages() |
| 1239 |
{ |
| 1240 |
return $this->messages; |
| 1241 |
} |
| 1242 |
} |
| 1243 |
|
| 1244 |
class Analytify_Google_Service_Gmail_Label extends Analytify_Google_Model |
| 1245 |
{ |
| 1246 |
public $id; |
| 1247 |
public $labelListVisibility; |
| 1248 |
public $messageListVisibility; |
| 1249 |
public $name; |
| 1250 |
public $type; |
| 1251 |
|
| 1252 |
public function setId($id) |
| 1253 |
{ |
| 1254 |
$this->id = $id; |
| 1255 |
} |
| 1256 |
|
| 1257 |
public function getId() |
| 1258 |
{ |
| 1259 |
return $this->id; |
| 1260 |
} |
| 1261 |
|
| 1262 |
public function setLabelListVisibility($labelListVisibility) |
| 1263 |
{ |
| 1264 |
$this->labelListVisibility = $labelListVisibility; |
| 1265 |
} |
| 1266 |
|
| 1267 |
public function getLabelListVisibility() |
| 1268 |
{ |
| 1269 |
return $this->labelListVisibility; |
| 1270 |
} |
| 1271 |
|
| 1272 |
public function setMessageListVisibility($messageListVisibility) |
| 1273 |
{ |
| 1274 |
$this->messageListVisibility = $messageListVisibility; |
| 1275 |
} |
| 1276 |
|
| 1277 |
public function getMessageListVisibility() |
| 1278 |
{ |
| 1279 |
return $this->messageListVisibility; |
| 1280 |
} |
| 1281 |
|
| 1282 |
public function setName($name) |
| 1283 |
{ |
| 1284 |
$this->name = $name; |
| 1285 |
} |
| 1286 |
|
| 1287 |
public function getName() |
| 1288 |
{ |
| 1289 |
return $this->name; |
| 1290 |
} |
| 1291 |
|
| 1292 |
public function setType($type) |
| 1293 |
{ |
| 1294 |
$this->type = $type; |
| 1295 |
} |
| 1296 |
|
| 1297 |
public function getType() |
| 1298 |
{ |
| 1299 |
return $this->type; |
| 1300 |
} |
| 1301 |
} |
| 1302 |
|
| 1303 |
class Analytify_Google_Service_Gmail_ListDraftsResponse extends Analytify_Google_Collection |
| 1304 |
{ |
| 1305 |
protected $draftsType = 'Analytify_Google_Service_Gmail_Draft'; |
| 1306 |
protected $draftsDataType = 'array'; |
| 1307 |
public $nextPageToken; |
| 1308 |
public $resultSizeEstimate; |
| 1309 |
|
| 1310 |
public function setDrafts($drafts) |
| 1311 |
{ |
| 1312 |
$this->drafts = $drafts; |
| 1313 |
} |
| 1314 |
|
| 1315 |
public function getDrafts() |
| 1316 |
{ |
| 1317 |
return $this->drafts; |
| 1318 |
} |
| 1319 |
|
| 1320 |
public function setNextPageToken($nextPageToken) |
| 1321 |
{ |
| 1322 |
$this->nextPageToken = $nextPageToken; |
| 1323 |
} |
| 1324 |
|
| 1325 |
public function getNextPageToken() |
| 1326 |
{ |
| 1327 |
return $this->nextPageToken; |
| 1328 |
} |
| 1329 |
|
| 1330 |
public function setResultSizeEstimate($resultSizeEstimate) |
| 1331 |
{ |
| 1332 |
$this->resultSizeEstimate = $resultSizeEstimate; |
| 1333 |
} |
| 1334 |
|
| 1335 |
public function getResultSizeEstimate() |
| 1336 |
{ |
| 1337 |
return $this->resultSizeEstimate; |
| 1338 |
} |
| 1339 |
} |
| 1340 |
|
| 1341 |
class Analytify_Google_Service_Gmail_ListHistoryResponse extends Analytify_Google_Collection |
| 1342 |
{ |
| 1343 |
protected $historyType = 'Analytify_Google_Service_Gmail_History'; |
| 1344 |
protected $historyDataType = 'array'; |
| 1345 |
public $historyId; |
| 1346 |
public $nextPageToken; |
| 1347 |
|
| 1348 |
public function setHistory($history) |
| 1349 |
{ |
| 1350 |
$this->history = $history; |
| 1351 |
} |
| 1352 |
|
| 1353 |
public function getHistory() |
| 1354 |
{ |
| 1355 |
return $this->history; |
| 1356 |
} |
| 1357 |
|
| 1358 |
public function setHistoryId($historyId) |
| 1359 |
{ |
| 1360 |
$this->historyId = $historyId; |
| 1361 |
} |
| 1362 |
|
| 1363 |
public function getHistoryId() |
| 1364 |
{ |
| 1365 |
return $this->historyId; |
| 1366 |
} |
| 1367 |
|
| 1368 |
public function setNextPageToken($nextPageToken) |
| 1369 |
{ |
| 1370 |
$this->nextPageToken = $nextPageToken; |
| 1371 |
} |
| 1372 |
|
| 1373 |
public function getNextPageToken() |
| 1374 |
{ |
| 1375 |
return $this->nextPageToken; |
| 1376 |
} |
| 1377 |
} |
| 1378 |
|
| 1379 |
class Analytify_Google_Service_Gmail_ListLabelsResponse extends Analytify_Google_Collection |
| 1380 |
{ |
| 1381 |
protected $labelsType = 'Analytify_Google_Service_Gmail_Label'; |
| 1382 |
protected $labelsDataType = 'array'; |
| 1383 |
|
| 1384 |
public function setLabels($labels) |
| 1385 |
{ |
| 1386 |
$this->labels = $labels; |
| 1387 |
} |
| 1388 |
|
| 1389 |
public function getLabels() |
| 1390 |
{ |
| 1391 |
return $this->labels; |
| 1392 |
} |
| 1393 |
} |
| 1394 |
|
| 1395 |
class Analytify_Google_Service_Gmail_ListMessagesResponse extends Analytify_Google_Collection |
| 1396 |
{ |
| 1397 |
protected $messagesType = 'Analytify_Google_Service_Gmail_Message'; |
| 1398 |
protected $messagesDataType = 'array'; |
| 1399 |
public $nextPageToken; |
| 1400 |
public $resultSizeEstimate; |
| 1401 |
|
| 1402 |
public function setMessages($messages) |
| 1403 |
{ |
| 1404 |
$this->messages = $messages; |
| 1405 |
} |
| 1406 |
|
| 1407 |
public function getMessages() |
| 1408 |
{ |
| 1409 |
return $this->messages; |
| 1410 |
} |
| 1411 |
|
| 1412 |
public function setNextPageToken($nextPageToken) |
| 1413 |
{ |
| 1414 |
$this->nextPageToken = $nextPageToken; |
| 1415 |
} |
| 1416 |
|
| 1417 |
public function getNextPageToken() |
| 1418 |
{ |
| 1419 |
return $this->nextPageToken; |
| 1420 |
} |
| 1421 |
|
| 1422 |
public function setResultSizeEstimate($resultSizeEstimate) |
| 1423 |
{ |
| 1424 |
$this->resultSizeEstimate = $resultSizeEstimate; |
| 1425 |
} |
| 1426 |
|
| 1427 |
public function getResultSizeEstimate() |
| 1428 |
{ |
| 1429 |
return $this->resultSizeEstimate; |
| 1430 |
} |
| 1431 |
} |
| 1432 |
|
| 1433 |
class Analytify_Google_Service_Gmail_ListThreadsResponse extends Analytify_Google_Collection |
| 1434 |
{ |
| 1435 |
public $nextPageToken; |
| 1436 |
public $resultSizeEstimate; |
| 1437 |
protected $threadsType = 'Analytify_Google_Service_Gmail_Thread'; |
| 1438 |
protected $threadsDataType = 'array'; |
| 1439 |
|
| 1440 |
public function setNextPageToken($nextPageToken) |
| 1441 |
{ |
| 1442 |
$this->nextPageToken = $nextPageToken; |
| 1443 |
} |
| 1444 |
|
| 1445 |
public function getNextPageToken() |
| 1446 |
{ |
| 1447 |
return $this->nextPageToken; |
| 1448 |
} |
| 1449 |
|
| 1450 |
public function setResultSizeEstimate($resultSizeEstimate) |
| 1451 |
{ |
| 1452 |
$this->resultSizeEstimate = $resultSizeEstimate; |
| 1453 |
} |
| 1454 |
|
| 1455 |
public function getResultSizeEstimate() |
| 1456 |
{ |
| 1457 |
return $this->resultSizeEstimate; |
| 1458 |
} |
| 1459 |
|
| 1460 |
public function setThreads($threads) |
| 1461 |
{ |
| 1462 |
$this->threads = $threads; |
| 1463 |
} |
| 1464 |
|
| 1465 |
public function getThreads() |
| 1466 |
{ |
| 1467 |
return $this->threads; |
| 1468 |
} |
| 1469 |
} |
| 1470 |
|
| 1471 |
class Analytify_Google_Service_Gmail_Message extends Analytify_Google_Collection |
| 1472 |
{ |
| 1473 |
public $historyId; |
| 1474 |
public $id; |
| 1475 |
public $labelIds; |
| 1476 |
protected $payloadType = 'Analytify_Google_Service_Gmail_MessagePart'; |
| 1477 |
protected $payloadDataType = ''; |
| 1478 |
public $raw; |
| 1479 |
public $sizeEstimate; |
| 1480 |
public $snippet; |
| 1481 |
public $threadId; |
| 1482 |
|
| 1483 |
public function setHistoryId($historyId) |
| 1484 |
{ |
| 1485 |
$this->historyId = $historyId; |
| 1486 |
} |
| 1487 |
|
| 1488 |
public function getHistoryId() |
| 1489 |
{ |
| 1490 |
return $this->historyId; |
| 1491 |
} |
| 1492 |
|
| 1493 |
public function setId($id) |
| 1494 |
{ |
| 1495 |
$this->id = $id; |
| 1496 |
} |
| 1497 |
|
| 1498 |
public function getId() |
| 1499 |
{ |
| 1500 |
return $this->id; |
| 1501 |
} |
| 1502 |
|
| 1503 |
public function setLabelIds($labelIds) |
| 1504 |
{ |
| 1505 |
$this->labelIds = $labelIds; |
| 1506 |
} |
| 1507 |
|
| 1508 |
public function getLabelIds() |
| 1509 |
{ |
| 1510 |
return $this->labelIds; |
| 1511 |
} |
| 1512 |
|
| 1513 |
public function setPayload(Analytify_Google_Service_Gmail_MessagePart $payload) |
| 1514 |
{ |
| 1515 |
$this->payload = $payload; |
| 1516 |
} |
| 1517 |
|
| 1518 |
public function getPayload() |
| 1519 |
{ |
| 1520 |
return $this->payload; |
| 1521 |
} |
| 1522 |
|
| 1523 |
public function setRaw($raw) |
| 1524 |
{ |
| 1525 |
$this->raw = $raw; |
| 1526 |
} |
| 1527 |
|
| 1528 |
public function getRaw() |
| 1529 |
{ |
| 1530 |
return $this->raw; |
| 1531 |
} |
| 1532 |
|
| 1533 |
public function setSizeEstimate($sizeEstimate) |
| 1534 |
{ |
| 1535 |
$this->sizeEstimate = $sizeEstimate; |
| 1536 |
} |
| 1537 |
|
| 1538 |
public function getSizeEstimate() |
| 1539 |
{ |
| 1540 |
return $this->sizeEstimate; |
| 1541 |
} |
| 1542 |
|
| 1543 |
public function setSnippet($snippet) |
| 1544 |
{ |
| 1545 |
$this->snippet = $snippet; |
| 1546 |
} |
| 1547 |
|
| 1548 |
public function getSnippet() |
| 1549 |
{ |
| 1550 |
return $this->snippet; |
| 1551 |
} |
| 1552 |
|
| 1553 |
public function setThreadId($threadId) |
| 1554 |
{ |
| 1555 |
$this->threadId = $threadId; |
| 1556 |
} |
| 1557 |
|
| 1558 |
public function getThreadId() |
| 1559 |
{ |
| 1560 |
return $this->threadId; |
| 1561 |
} |
| 1562 |
} |
| 1563 |
|
| 1564 |
class Analytify_Google_Service_Gmail_MessagePart extends Analytify_Google_Collection |
| 1565 |
{ |
| 1566 |
protected $bodyType = 'Analytify_Google_Service_Gmail_MessagePartBody'; |
| 1567 |
protected $bodyDataType = ''; |
| 1568 |
public $filename; |
| 1569 |
protected $headersType = 'Analytify_Google_Service_Gmail_MessagePartHeader'; |
| 1570 |
protected $headersDataType = 'array'; |
| 1571 |
public $mimeType; |
| 1572 |
public $partId; |
| 1573 |
protected $partsType = 'Analytify_Google_Service_Gmail_MessagePart'; |
| 1574 |
protected $partsDataType = 'array'; |
| 1575 |
|
| 1576 |
public function setBody(Analytify_Google_Service_Gmail_MessagePartBody $body) |
| 1577 |
{ |
| 1578 |
$this->body = $body; |
| 1579 |
} |
| 1580 |
|
| 1581 |
public function getBody() |
| 1582 |
{ |
| 1583 |
return $this->body; |
| 1584 |
} |
| 1585 |
|
| 1586 |
public function setFilename($filename) |
| 1587 |
{ |
| 1588 |
$this->filename = $filename; |
| 1589 |
} |
| 1590 |
|
| 1591 |
public function getFilename() |
| 1592 |
{ |
| 1593 |
return $this->filename; |
| 1594 |
} |
| 1595 |
|
| 1596 |
public function setHeaders($headers) |
| 1597 |
{ |
| 1598 |
$this->headers = $headers; |
| 1599 |
} |
| 1600 |
|
| 1601 |
public function getHeaders() |
| 1602 |
{ |
| 1603 |
return $this->headers; |
| 1604 |
} |
| 1605 |
|
| 1606 |
public function setMimeType($mimeType) |
| 1607 |
{ |
| 1608 |
$this->mimeType = $mimeType; |
| 1609 |
} |
| 1610 |
|
| 1611 |
public function getMimeType() |
| 1612 |
{ |
| 1613 |
return $this->mimeType; |
| 1614 |
} |
| 1615 |
|
| 1616 |
public function setPartId($partId) |
| 1617 |
{ |
| 1618 |
$this->partId = $partId; |
| 1619 |
} |
| 1620 |
|
| 1621 |
public function getPartId() |
| 1622 |
{ |
| 1623 |
return $this->partId; |
| 1624 |
} |
| 1625 |
|
| 1626 |
public function setParts($parts) |
| 1627 |
{ |
| 1628 |
$this->parts = $parts; |
| 1629 |
} |
| 1630 |
|
| 1631 |
public function getParts() |
| 1632 |
{ |
| 1633 |
return $this->parts; |
| 1634 |
} |
| 1635 |
} |
| 1636 |
|
| 1637 |
class Analytify_Google_Service_Gmail_MessagePartBody extends Analytify_Google_Model |
| 1638 |
{ |
| 1639 |
public $attachmentId; |
| 1640 |
public $data; |
| 1641 |
public $size; |
| 1642 |
|
| 1643 |
public function setAttachmentId($attachmentId) |
| 1644 |
{ |
| 1645 |
$this->attachmentId = $attachmentId; |
| 1646 |
} |
| 1647 |
|
| 1648 |
public function getAttachmentId() |
| 1649 |
{ |
| 1650 |
return $this->attachmentId; |
| 1651 |
} |
| 1652 |
|
| 1653 |
public function setData($data) |
| 1654 |
{ |
| 1655 |
$this->data = $data; |
| 1656 |
} |
| 1657 |
|
| 1658 |
public function getData() |
| 1659 |
{ |
| 1660 |
return $this->data; |
| 1661 |
} |
| 1662 |
|
| 1663 |
public function setSize($size) |
| 1664 |
{ |
| 1665 |
$this->size = $size; |
| 1666 |
} |
| 1667 |
|
| 1668 |
public function getSize() |
| 1669 |
{ |
| 1670 |
return $this->size; |
| 1671 |
} |
| 1672 |
} |
| 1673 |
|
| 1674 |
class Analytify_Google_Service_Gmail_MessagePartHeader extends Analytify_Google_Model |
| 1675 |
{ |
| 1676 |
public $name; |
| 1677 |
public $value; |
| 1678 |
|
| 1679 |
public function setName($name) |
| 1680 |
{ |
| 1681 |
$this->name = $name; |
| 1682 |
} |
| 1683 |
|
| 1684 |
public function getName() |
| 1685 |
{ |
| 1686 |
return $this->name; |
| 1687 |
} |
| 1688 |
|
| 1689 |
public function setValue($value) |
| 1690 |
{ |
| 1691 |
$this->value = $value; |
| 1692 |
} |
| 1693 |
|
| 1694 |
public function getValue() |
| 1695 |
{ |
| 1696 |
return $this->value; |
| 1697 |
} |
| 1698 |
} |
| 1699 |
|
| 1700 |
class Analytify_Google_Service_Gmail_ModifyMessageRequest extends Analytify_Google_Collection |
| 1701 |
{ |
| 1702 |
public $addLabelIds; |
| 1703 |
public $removeLabelIds; |
| 1704 |
|
| 1705 |
public function setAddLabelIds($addLabelIds) |
| 1706 |
{ |
| 1707 |
$this->addLabelIds = $addLabelIds; |
| 1708 |
} |
| 1709 |
|
| 1710 |
public function getAddLabelIds() |
| 1711 |
{ |
| 1712 |
return $this->addLabelIds; |
| 1713 |
} |
| 1714 |
|
| 1715 |
public function setRemoveLabelIds($removeLabelIds) |
| 1716 |
{ |
| 1717 |
$this->removeLabelIds = $removeLabelIds; |
| 1718 |
} |
| 1719 |
|
| 1720 |
public function getRemoveLabelIds() |
| 1721 |
{ |
| 1722 |
return $this->removeLabelIds; |
| 1723 |
} |
| 1724 |
} |
| 1725 |
|
| 1726 |
class Analytify_Google_Service_Gmail_ModifyThreadRequest extends Analytify_Google_Collection |
| 1727 |
{ |
| 1728 |
public $addLabelIds; |
| 1729 |
public $removeLabelIds; |
| 1730 |
|
| 1731 |
public function setAddLabelIds($addLabelIds) |
| 1732 |
{ |
| 1733 |
$this->addLabelIds = $addLabelIds; |
| 1734 |
} |
| 1735 |
|
| 1736 |
public function getAddLabelIds() |
| 1737 |
{ |
| 1738 |
return $this->addLabelIds; |
| 1739 |
} |
| 1740 |
|
| 1741 |
public function setRemoveLabelIds($removeLabelIds) |
| 1742 |
{ |
| 1743 |
$this->removeLabelIds = $removeLabelIds; |
| 1744 |
} |
| 1745 |
|
| 1746 |
public function getRemoveLabelIds() |
| 1747 |
{ |
| 1748 |
return $this->removeLabelIds; |
| 1749 |
} |
| 1750 |
} |
| 1751 |
|
| 1752 |
class Analytify_Google_Service_Gmail_Thread extends Analytify_Google_Collection |
| 1753 |
{ |
| 1754 |
public $historyId; |
| 1755 |
public $id; |
| 1756 |
protected $messagesType = 'Analytify_Google_Service_Gmail_Message'; |
| 1757 |
protected $messagesDataType = 'array'; |
| 1758 |
public $snippet; |
| 1759 |
|
| 1760 |
public function setHistoryId($historyId) |
| 1761 |
{ |
| 1762 |
$this->historyId = $historyId; |
| 1763 |
} |
| 1764 |
|
| 1765 |
public function getHistoryId() |
| 1766 |
{ |
| 1767 |
return $this->historyId; |
| 1768 |
} |
| 1769 |
|
| 1770 |
public function setId($id) |
| 1771 |
{ |
| 1772 |
$this->id = $id; |
| 1773 |
} |
| 1774 |
|
| 1775 |
public function getId() |
| 1776 |
{ |
| 1777 |
return $this->id; |
| 1778 |
} |
| 1779 |
|
| 1780 |
public function setMessages($messages) |
| 1781 |
{ |
| 1782 |
$this->messages = $messages; |
| 1783 |
} |
| 1784 |
|
| 1785 |
public function getMessages() |
| 1786 |
{ |
| 1787 |
return $this->messages; |
| 1788 |
} |
| 1789 |
|
| 1790 |
public function setSnippet($snippet) |
| 1791 |
{ |
| 1792 |
$this->snippet = $snippet; |
| 1793 |
} |
| 1794 |
|
| 1795 |
public function getSnippet() |
| 1796 |
{ |
| 1797 |
return $this->snippet; |
| 1798 |
} |
| 1799 |
} |
| 1800 |
|