Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update the Blogger, Plus, Site Verification, and Orkut service to the…

… latest version.
  • Loading branch information...
commit 6a3e7d15991e3102cfda0ae3cad2ecd2edf814f0 1 parent c1a6870
chirags@google.com authored
32 src/contrib/apiBloggerService.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2 /*
3   - * Copyright (c) 2010 Google Inc.
  3 + * Copyright 2010 Google Inc.
4 4 *
5 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 6 * use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,6 @@
15 15 * the License.
16 16 */
17 17
18   -require_once 'service/apiModel.php';
19   -require_once 'service/apiService.php';
20   -require_once 'service/apiServiceRequest.php';
21   -
22 18
23 19 /**
24 20 * The "blogs" collection of methods.
@@ -233,7 +229,6 @@ public function get($userId, $optParams = array()) {
233 229 }
234 230 }
235 231
236   -
237 232 /**
238 233 * The "blogs" collection of methods.
239 234 * Typical usage is:
@@ -248,7 +243,7 @@ class UsersBlogsServiceResource extends apiServiceResource {
248 243 /**
249 244 * Retrieves a list of blogs, possibly filtered. (blogs.list)
250 245 *
251   - * @param string $userId ID of the user whose blogs are to be fetched.
  246 + * @param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
252 247 * @return BlogList
253 248 */
254 249 public function listUsersBlogs($userId, $optParams = array()) {
@@ -263,8 +258,6 @@ public function listUsersBlogs($userId, $optParams = array()) {
263 258 }
264 259 }
265 260
266   -
267   -
268 261 /**
269 262 * Service definition for Blogger (v2).
270 263 *
@@ -292,7 +285,6 @@ class apiBloggerService extends apiService {
292 285 * @param apiClient apiClient
293 286 */
294 287 public function __construct(apiClient $apiClient) {
295   - $this->rpcPath = '/rpc';
296 288 $this->restBasePath = '/blogger/v2/';
297 289 $this->version = 'v2';
298 290 $this->serviceName = 'blogger';
@@ -304,6 +296,7 @@ public function __construct(apiClient $apiClient) {
304 296 $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"startDate": {"type": "string", "location": "query"}, "postId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "type": "integer", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.list", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "postId": {"required": true, "type": "string", "location": "path"}, "blogId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.comments.get", "httpMethod": "GET", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
305 297 $this->users = new UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.get", "httpMethod": "GET", "path": "users/{userId}", "response": {"$ref": "User"}}}}', true));
306 298 $this->users_blogs = new UsersBlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/blogger"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "blogger.users.blogs.list", "httpMethod": "GET", "path": "users/{userId}/blogs", "response": {"$ref": "BlogList"}}}}', true));
  299 +
307 300 }
308 301 }
309 302
@@ -474,6 +467,9 @@ public function getSelfLink() {
474 467 class Comment extends apiModel {
475 468 public $content;
476 469 public $kind;
  470 + protected $__inReplyToType = 'CommentInReplyTo';
  471 + protected $__inReplyToDataType = '';
  472 + public $inReplyTo;
477 473 protected $__authorType = 'CommentAuthor';
478 474 protected $__authorDataType = '';
479 475 public $author;
@@ -499,6 +495,12 @@ public function setKind($kind) {
499 495 public function getKind() {
500 496 return $this->kind;
501 497 }
  498 + public function setInReplyTo(CommentInReplyTo $inReplyTo) {
  499 + $this->inReplyTo = $inReplyTo;
  500 + }
  501 + public function getInReplyTo() {
  502 + return $this->inReplyTo;
  503 + }
502 504 public function setAuthor(CommentAuthor $author) {
503 505 $this->author = $author;
504 506 }
@@ -596,6 +598,16 @@ public function getId() {
596 598 }
597 599 }
598 600
  601 +class CommentInReplyTo extends apiModel {
  602 + public $id;
  603 + public function setId($id) {
  604 + $this->id = $id;
  605 + }
  606 + public function getId() {
  607 + return $this->id;
  608 + }
  609 +}
  610 +
599 611 class CommentList extends apiModel {
600 612 public $nextPageToken;
601 613 protected $__itemsType = 'Comment';
41 src/contrib/apiOrkutService.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2 /*
3   - * Copyright (c) 2010 Google Inc.
  3 + * Copyright 2010 Google Inc.
4 4 *
5 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 6 * use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,6 @@
15 15 * the License.
16 16 */
17 17
18   -require_once 'service/apiModel.php';
19   -require_once 'service/apiService.php';
20   -require_once 'service/apiServiceRequest.php';
21   -
22 18
23 19 /**
24 20 * The "communityMembers" collection of methods.
@@ -69,7 +65,9 @@ public function get($communityId, $userId, $optParams = array()) {
69 65 }
70 66 }
71 67 /**
72   - * Lists members of a community. (communityMembers.list)
  68 + * Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on
  69 + * the member count available in the community profile information to know when to stop iterating,
  70 + * as that count may be approximate. (communityMembers.list)
73 71 *
74 72 * @param int $communityId The ID of the community whose members will be listed.
75 73 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
@@ -217,7 +215,7 @@ class CommunityPollsServiceResource extends apiServiceResource {
217 215 /**
218 216 * Retrieves the polls of a community. (communityPolls.list)
219 217 *
220   - * @param string $communityId The ID of the community which polls will be listed.
  218 + * @param int $communityId The ID of the community which polls will be listed.
221 219 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
222 220 *
223 221 * @opt_param string pageToken A continuation token that allows pagination.
@@ -620,7 +618,7 @@ class CommunitiesServiceResource extends apiServiceResource {
620 618
621 619
622 620 /**
623   - * Retrieves the communities an user is member of. (communities.list)
  621 + * Retrieves the list of communities the current user is a member of. (communities.list)
624 622 *
625 623 * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller.
626 624 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
@@ -641,7 +639,7 @@ public function listCommunities($userId, $optParams = array()) {
641 639 }
642 640 }
643 641 /**
644   - * Retrieves the profile of a community. (communities.get)
  642 + * Retrieves the basic information (aka. profile) of a community. (communities.get)
645 643 *
646 644 * @param int $communityId The ID of the community to get.
647 645 * @param array $optParams Optional parameters. Valid optional parameters are listed below.
@@ -673,7 +671,7 @@ class CommunityFollowServiceResource extends apiServiceResource {
673 671
674 672
675 673 /**
676   - * Adds an user as a follower of a community. (communityFollow.insert)
  674 + * Adds a user as a follower of a community. (communityFollow.insert)
677 675 *
678 676 * @param int $communityId ID of the community.
679 677 * @param string $userId ID of the user.
@@ -690,7 +688,7 @@ public function insert($communityId, $userId, $optParams = array()) {
690 688 }
691 689 }
692 690 /**
693   - * Removes an user from the followers of a community. (communityFollow.delete)
  691 + * Removes a user from the followers of a community. (communityFollow.delete)
694 692 *
695 693 * @param int $communityId ID of the community.
696 694 * @param string $userId ID of the user.
@@ -825,7 +823,7 @@ class CountersServiceResource extends apiServiceResource {
825 823
826 824
827 825 /**
828   - * Retrieves the counters of an user. (counters.list)
  826 + * Retrieves the counters of a user. (counters.list)
829 827 *
830 828 * @param string $userId The ID of the user whose counters will be listed. Can be me to refer to caller.
831 829 * @return Counters
@@ -842,8 +840,6 @@ public function listCounters($userId, $optParams = array()) {
842 840 }
843 841 }
844 842
845   -
846   -
847 843 /**
848 844 * Service definition for Orkut (v2).
849 845 *
@@ -881,7 +877,6 @@ class apiOrkutService extends apiService {
881 877 * @param apiClient apiClient
882 878 */
883 879 public function __construct(apiClient $apiClient) {
884   - $this->rpcPath = '/rpc';
885 880 $this->restBasePath = '/orkut/v2/';
886 881 $this->version = 'v2';
887 882 $this->serviceName = 'orkut';
@@ -890,9 +885,9 @@ public function __construct(apiClient $apiClient) {
890 885 $this->communityMembers = new CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "friendsOnly": {"type": "boolean", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.get", "httpMethod": "GET", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}}}', true));
891 886 $this->activities = new ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"collection": {"required": true, "enum": ["all", "scraps", "stream"], "location": "path", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "activities/{activityId}", "id": "orkut.activities.delete"}}}', true));
892 887 $this->communityPollComments = new CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "id": "orkut.communityPollComments.insert", "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollComment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
893   - $this->communityPolls = new CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
894   - $this->communityMessages = new CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityMessage"}, "id": "orkut.communityMessages.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessage"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "messageId": {"format": "uint64", "required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete"}}}', true));
895   - $this->communityTopics = new CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityTopic"}, "id": "orkut.communityTopics.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopic"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"format": "uint64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}}}', true));
  888 + $this->communityPolls = new CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
  889 + $this->communityMessages = new CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "int64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityMessage"}, "id": "orkut.communityMessages.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessage"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "topicId": {"format": "int64", "required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "int64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "messageId": {"format": "int64", "required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete"}}}', true));
  890 + $this->communityTopics = new CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "request": {"$ref": "CommunityTopic"}, "id": "orkut.communityTopics.insert", "httpMethod": "POST", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopic"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"format": "int64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}}, "httpMethod": "DELETE", "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"format": "int64", "required": true, "type": "string", "location": "path"}, "communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}}}', true));
896 891 $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "id": "orkut.comments.insert", "httpMethod": "POST", "path": "activities/{activityId}/comments", "response": {"$ref": "Comment"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "comments/{commentId}", "id": "orkut.comments.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "location": "query", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
897 892 $this->acl = new AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete"}}}', true));
898 893 $this->communityRelated = new CommunityRelatedServiceResource($this, $this->serviceName, 'communityRelated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"format": "int32", "required": true, "type": "integer", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityRelated.list", "httpMethod": "GET", "path": "communities/{communityId}/related", "response": {"$ref": "CommunityList"}}}}', true));
@@ -903,6 +898,7 @@ public function __construct(apiClient $apiClient) {
903 898 $this->activityVisibility = new ActivityVisibilityServiceResource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.activityVisibility.get", "httpMethod": "GET", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}, "update": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "id": "orkut.activityVisibility.update", "httpMethod": "PUT", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "id": "orkut.activityVisibility.patch", "httpMethod": "PATCH", "path": "activities/{activityId}/visibility", "response": {"$ref": "Visibility"}}}}', true));
904 899 $this->badges = new BadgesServiceResource($this, $this->serviceName, 'badges', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.list", "httpMethod": "GET", "path": "people/{userId}/badges", "response": {"$ref": "BadgeList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}, "badgeId": {"format": "int64", "required": true, "type": "string", "location": "path"}}, "id": "orkut.badges.get", "httpMethod": "GET", "path": "people/{userId}/badges/{badgeId}", "response": {"$ref": "Badge"}}}}', true));
905 900 $this->counters = new CountersServiceResource($this, $this->serviceName, 'counters', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.counters.list", "httpMethod": "GET", "path": "people/{userId}/counters", "response": {"$ref": "Counters"}}}}', true));
  901 +
906 902 }
907 903 }
908 904
@@ -2239,6 +2235,9 @@ class OrkutActivityobjectsResource extends apiModel {
2239 2235 protected $__linksType = 'OrkutLinkResource';
2240 2236 protected $__linksDataType = 'array';
2241 2237 public $links;
  2238 + protected $__communityType = 'Community';
  2239 + protected $__communityDataType = '';
  2240 + public $community;
2242 2241 public $content;
2243 2242 protected $__personType = 'OrkutActivitypersonResource';
2244 2243 protected $__personDataType = '';
@@ -2258,6 +2257,12 @@ public function setLinks(/* array(OrkutLinkResource) */ $links) {
2258 2257 public function getLinks() {
2259 2258 return $this->links;
2260 2259 }
  2260 + public function setCommunity(Community $community) {
  2261 + $this->community = $community;
  2262 + }
  2263 + public function getCommunity() {
  2264 + return $this->community;
  2265 + }
2261 2266 public function setContent($content) {
2262 2267 $this->content = $content;
2263 2268 }
63 src/contrib/apiPlusService.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2 /*
3   - * Copyright (c) 2010 Google Inc.
  3 + * Copyright 2010 Google Inc.
4 4 *
5 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 6 * use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,6 @@
15 15 * the License.
16 16 */
17 17
18   -require_once 'service/apiModel.php';
19   -require_once 'service/apiService.php';
20   -require_once 'service/apiServiceRequest.php';
21   -
22 18
23 19 /**
24 20 * The "activities" collection of methods.
@@ -111,6 +107,7 @@ class CommentsServiceResource extends apiServiceResource {
111 107 *
112 108 * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
113 109 * @opt_param string maxResults The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  110 + * @opt_param string sortOrder The order in which to sort the list of comments.
114 111 * @return CommentFeed
115 112 */
116 113 public function listComments($activityId, $optParams = array()) {
@@ -213,8 +210,6 @@ public function get($userId, $optParams = array()) {
213 210 }
214 211 }
215 212
216   -
217   -
218 213 /**
219 214 * Service definition for Plus (v1).
220 215 *
@@ -239,15 +234,15 @@ class apiPlusService extends apiService {
239 234 * @param apiClient apiClient
240 235 */
241 236 public function __construct(apiClient $apiClient) {
242   - $this->rpcPath = '/rpc';
243 237 $this->restBasePath = '/plus/v1/';
244 238 $this->version = 'v1';
245 239 $this->serviceName = 'plus';
246 240
247 241 $apiClient->addService($this->serviceName, $this->version);
248 242 $this->activities = new ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"orderBy": {"default": "recent", "enum": ["best", "recent"], "location": "query", "type": "string"}, "pageToken": {"type": "string", "location": "query"}, "language": {"default": "", "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.activities.search", "httpMethod": "GET", "path": "activities", "response": {"$ref": "ActivityFeed"}}, "list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}, "userId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "enum": ["public"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "plus.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}}, "id": "plus.activities.get", "httpMethod": "GET", "path": "activities/{activityId}", "response": {"$ref": "Activity"}}}}', true));
249   - $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}}, "id": "plus.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
  243 + $this->comments = new CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "location": "query", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "sortOrder": {"default": "ascending", "enum": ["ascending", "descending"], "location": "query", "type": "string"}}, "id": "plus.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
250 244 $this->people = new PeopleServiceResource($this, $this->serviceName, 'people', json_decode('{"methods": {"listByActivity": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "collection": {"required": true, "enum": ["plusoners", "resharers"], "location": "path", "type": "string"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}}, "id": "plus.people.listByActivity", "httpMethod": "GET", "path": "activities/{activityId}/people/{collection}", "response": {"$ref": "PeopleFeed"}}, "search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "language": {"default": "", "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.people.search", "httpMethod": "GET", "path": "people", "response": {"$ref": "PeopleFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.people.get", "httpMethod": "GET", "path": "people/{userId}", "response": {"$ref": "Person"}}}}', true));
  245 +
251 246 }
252 247 }
253 248
@@ -430,20 +425,15 @@ public function getPublished() {
430 425 }
431 426
432 427 class ActivityActor extends apiModel {
433   - public $displayName;
434 428 public $url;
435 429 protected $__imageType = 'ActivityActorImage';
436 430 protected $__imageDataType = '';
437 431 public $image;
438   - public $familyName;
439   - public $givenName;
  432 + public $displayName;
440 433 public $id;
441   - public function setDisplayName($displayName) {
442   - $this->displayName = $displayName;
443   - }
444   - public function getDisplayName() {
445   - return $this->displayName;
446   - }
  434 + protected $__nameType = 'ActivityActorName';
  435 + protected $__nameDataType = '';
  436 + public $name;
447 437 public function setUrl($url) {
448 438 $this->url = $url;
449 439 }
@@ -456,17 +446,11 @@ public function setImage(ActivityActorImage $image) {
456 446 public function getImage() {
457 447 return $this->image;
458 448 }
459   - public function setFamilyName($familyName) {
460   - $this->familyName = $familyName;
461   - }
462   - public function getFamilyName() {
463   - return $this->familyName;
464   - }
465   - public function setGivenName($givenName) {
466   - $this->givenName = $givenName;
  449 + public function setDisplayName($displayName) {
  450 + $this->displayName = $displayName;
467 451 }
468   - public function getGivenName() {
469   - return $this->givenName;
  452 + public function getDisplayName() {
  453 + return $this->displayName;
470 454 }
471 455 public function setId($id) {
472 456 $this->id = $id;
@@ -474,6 +458,12 @@ public function setId($id) {
474 458 public function getId() {
475 459 return $this->id;
476 460 }
  461 + public function setName(ActivityActorName $name) {
  462 + $this->name = $name;
  463 + }
  464 + public function getName() {
  465 + return $this->name;
  466 + }
477 467 }
478 468
479 469 class ActivityActorImage extends apiModel {
@@ -486,6 +476,23 @@ public function getUrl() {
486 476 }
487 477 }
488 478
  479 +class ActivityActorName extends apiModel {
  480 + public $givenName;
  481 + public $familyName;
  482 + public function setGivenName($givenName) {
  483 + $this->givenName = $givenName;
  484 + }
  485 + public function getGivenName() {
  486 + return $this->givenName;
  487 + }
  488 + public function setFamilyName($familyName) {
  489 + $this->familyName = $familyName;
  490 + }
  491 + public function getFamilyName() {
  492 + return $this->familyName;
  493 + }
  494 +}
  495 +
489 496 class ActivityFeed extends apiModel {
490 497 public $nextPageToken;
491 498 public $kind;
22 src/contrib/apiSiteVerificationService.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2 /*
3   - * Copyright (c) 2010 Google Inc.
  3 + * Copyright 2010 Google Inc.
4 4 *
5 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 6 * use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,6 @@
15 15 * the License.
16 16 */
17 17
18   -require_once 'service/apiModel.php';
19   -require_once 'service/apiService.php';
20   -require_once 'service/apiServiceRequest.php';
21   -
22 18
23 19 /**
24 20 * The "webResource" collection of methods.
@@ -117,15 +113,11 @@ public function patch($id, SiteVerificationWebResourceResource $postBody, $optPa
117 113 /**
118 114 * Get a verification token for placing on a website or domain. (webResource.getToken)
119 115 *
120   - * @param array $optParams Optional parameters. Valid optional parameters are listed below.
121   - *
122   - * @opt_param string verificationMethod The method to use for verifying a site or domain.
123   - * @opt_param string identifier The URL or domain to verify.
124   - * @opt_param string type Type of resource to verify. Can be 'site' (URL) or 'inet_domain' (domain name).
  116 + * @param SiteVerificationWebResourceGettokenRequest $postBody
125 117 * @return SiteVerificationWebResourceGettokenResponse
126 118 */
127   - public function getToken($optParams = array()) {
128   - $params = array();
  119 + public function getToken(SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) {
  120 + $params = array('postBody' => $postBody);
129 121 $params = array_merge($params, $optParams);
130 122 $data = $this->__call('getToken', array($params));
131 123 if ($this->useObjects()) {
@@ -147,8 +139,6 @@ public function delete($id, $optParams = array()) {
147 139 }
148 140 }
149 141
150   -
151   -
152 142 /**
153 143 * Service definition for SiteVerification (v1).
154 144 *
@@ -171,13 +161,13 @@ class apiSiteVerificationService extends apiService {
171 161 * @param apiClient apiClient
172 162 */
173 163 public function __construct(apiClient $apiClient) {
174   - $this->rpcPath = '/rpc';
175 164 $this->restBasePath = '/siteVerification/v1/';
176 165 $this->version = 'v1';
177 166 $this->serviceName = 'siteVerification';
178 167
179 168 $apiClient->addService($this->serviceName, $this->version);
180   - $this->webResource = new WebResourceServiceResource($this, $this->serviceName, 'webResource', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"verificationMethod": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.insert", "httpMethod": "POST", "path": "webResource", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "get": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "id": "siteVerification.webResource.get", "httpMethod": "GET", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "list": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "id": "siteVerification.webResource.list", "httpMethod": "GET", "path": "webResource", "response": {"$ref": "SiteVerificationWebResourceListResponse"}}, "update": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.update", "httpMethod": "PUT", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.patch", "httpMethod": "PATCH", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "getToken": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"type": {"type": "string", "location": "query"}, "identifier": {"type": "string", "location": "query"}, "verificationMethod": {"type": "string", "location": "query"}}, "response": {"$ref": "SiteVerificationWebResourceGettokenResponse"}, "httpMethod": "GET", "path": "token", "id": "siteVerification.webResource.getToken"}, "delete": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "webResource/{id}", "id": "siteVerification.webResource.delete"}}}', true));
  169 + $this->webResource = new WebResourceServiceResource($this, $this->serviceName, 'webResource', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/siteverification", "https://www.googleapis.com/auth/siteverification.verify_only"], "parameters": {"verificationMethod": {"required": true, "type": "string", "location": "query"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.insert", "httpMethod": "POST", "path": "webResource", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "get": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "id": "siteVerification.webResource.get", "httpMethod": "GET", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "list": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "id": "siteVerification.webResource.list", "httpMethod": "GET", "path": "webResource", "response": {"$ref": "SiteVerificationWebResourceListResponse"}}, "update": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.update", "httpMethod": "PUT", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "id": "siteVerification.webResource.patch", "httpMethod": "PATCH", "path": "webResource/{id}", "response": {"$ref": "SiteVerificationWebResourceResource"}}, "getToken": {"scopes": ["https://www.googleapis.com/auth/siteverification", "https://www.googleapis.com/auth/siteverification.verify_only"], "request": {"$ref": "SiteVerificationWebResourceGettokenRequest"}, "response": {"$ref": "SiteVerificationWebResourceGettokenResponse"}, "httpMethod": "POST", "path": "token", "id": "siteVerification.webResource.getToken"}, "delete": {"scopes": ["https://www.googleapis.com/auth/siteverification"], "parameters": {"id": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "webResource/{id}", "id": "siteVerification.webResource.delete"}}}', true));
  170 +
181 171 }
182 172 }
183 173

0 comments on commit 6a3e7d1

Please sign in to comment.
Something went wrong with that request. Please try again.