PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/contrib/Google_OrkutService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 2554 lines | 1990 code | 90 blank | 474 comment | 56 complexity | d0cd466c78cd9c8dcd1e0cfef384696b MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "communityMembers" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $orkutService = new Google_OrkutService(...);
  20. * $communityMembers = $orkutService->communityMembers;
  21. * </code>
  22. */
  23. class Google_CommunityMembersServiceResource extends Google_ServiceResource {
  24. /**
  25. * Makes the user join a community. (communityMembers.insert)
  26. *
  27. * @param int $communityId ID of the community.
  28. * @param string $userId ID of the user.
  29. * @param array $optParams Optional parameters.
  30. * @return Google_CommunityMembers
  31. */
  32. public function insert($communityId, $userId, $optParams = array()) {
  33. $params = array('communityId' => $communityId, 'userId' => $userId);
  34. $params = array_merge($params, $optParams);
  35. $data = $this->__call('insert', array($params));
  36. if ($this->useObjects()) {
  37. return new Google_CommunityMembers($data);
  38. } else {
  39. return $data;
  40. }
  41. }
  42. /**
  43. * Retrieves the relationship between a user and a community. (communityMembers.get)
  44. *
  45. * @param int $communityId ID of the community.
  46. * @param string $userId ID of the user.
  47. * @param array $optParams Optional parameters.
  48. *
  49. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  50. * @return Google_CommunityMembers
  51. */
  52. public function get($communityId, $userId, $optParams = array()) {
  53. $params = array('communityId' => $communityId, 'userId' => $userId);
  54. $params = array_merge($params, $optParams);
  55. $data = $this->__call('get', array($params));
  56. if ($this->useObjects()) {
  57. return new Google_CommunityMembers($data);
  58. } else {
  59. return $data;
  60. }
  61. }
  62. /**
  63. * Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on
  64. * the member count available in the community profile information to know when to stop iterating,
  65. * as that count may be approximate. (communityMembers.list)
  66. *
  67. * @param int $communityId The ID of the community whose members will be listed.
  68. * @param array $optParams Optional parameters.
  69. *
  70. * @opt_param string pageToken A continuation token that allows pagination.
  71. * @opt_param bool friendsOnly Whether to list only community members who are friends of the user.
  72. * @opt_param string maxResults The maximum number of members to include in the response.
  73. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  74. * @return Google_CommunityMembersList
  75. */
  76. public function listCommunityMembers($communityId, $optParams = array()) {
  77. $params = array('communityId' => $communityId);
  78. $params = array_merge($params, $optParams);
  79. $data = $this->__call('list', array($params));
  80. if ($this->useObjects()) {
  81. return new Google_CommunityMembersList($data);
  82. } else {
  83. return $data;
  84. }
  85. }
  86. /**
  87. * Makes the user leave a community. (communityMembers.delete)
  88. *
  89. * @param int $communityId ID of the community.
  90. * @param string $userId ID of the user.
  91. * @param array $optParams Optional parameters.
  92. */
  93. public function delete($communityId, $userId, $optParams = array()) {
  94. $params = array('communityId' => $communityId, 'userId' => $userId);
  95. $params = array_merge($params, $optParams);
  96. $data = $this->__call('delete', array($params));
  97. return $data;
  98. }
  99. }
  100. /**
  101. * The "activities" collection of methods.
  102. * Typical usage is:
  103. * <code>
  104. * $orkutService = new Google_OrkutService(...);
  105. * $activities = $orkutService->activities;
  106. * </code>
  107. */
  108. class Google_ActivitiesServiceResource extends Google_ServiceResource {
  109. /**
  110. * Retrieves a list of activities. (activities.list)
  111. *
  112. * @param string $userId The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the authenticated user).
  113. * @param string $collection The collection of activities to list.
  114. * @param array $optParams Optional parameters.
  115. *
  116. * @opt_param string pageToken A continuation token that allows pagination.
  117. * @opt_param string maxResults The maximum number of activities to include in the response.
  118. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  119. * @return Google_ActivityList
  120. */
  121. public function listActivities($userId, $collection, $optParams = array()) {
  122. $params = array('userId' => $userId, 'collection' => $collection);
  123. $params = array_merge($params, $optParams);
  124. $data = $this->__call('list', array($params));
  125. if ($this->useObjects()) {
  126. return new Google_ActivityList($data);
  127. } else {
  128. return $data;
  129. }
  130. }
  131. /**
  132. * Deletes an existing activity, if the access controls allow it. (activities.delete)
  133. *
  134. * @param string $activityId ID of the activity to remove.
  135. * @param array $optParams Optional parameters.
  136. */
  137. public function delete($activityId, $optParams = array()) {
  138. $params = array('activityId' => $activityId);
  139. $params = array_merge($params, $optParams);
  140. $data = $this->__call('delete', array($params));
  141. return $data;
  142. }
  143. }
  144. /**
  145. * The "communityPollComments" collection of methods.
  146. * Typical usage is:
  147. * <code>
  148. * $orkutService = new Google_OrkutService(...);
  149. * $communityPollComments = $orkutService->communityPollComments;
  150. * </code>
  151. */
  152. class Google_CommunityPollCommentsServiceResource extends Google_ServiceResource {
  153. /**
  154. * Adds a comment on a community poll. (communityPollComments.insert)
  155. *
  156. * @param int $communityId The ID of the community whose poll is being commented.
  157. * @param string $pollId The ID of the poll being commented.
  158. * @param Google_CommunityPollComment $postBody
  159. * @param array $optParams Optional parameters.
  160. * @return Google_CommunityPollComment
  161. */
  162. public function insert($communityId, $pollId, Google_CommunityPollComment $postBody, $optParams = array()) {
  163. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  164. $params = array_merge($params, $optParams);
  165. $data = $this->__call('insert', array($params));
  166. if ($this->useObjects()) {
  167. return new Google_CommunityPollComment($data);
  168. } else {
  169. return $data;
  170. }
  171. }
  172. /**
  173. * Retrieves the comments of a community poll. (communityPollComments.list)
  174. *
  175. * @param int $communityId The ID of the community whose poll is having its comments listed.
  176. * @param string $pollId The ID of the community whose polls will be listed.
  177. * @param array $optParams Optional parameters.
  178. *
  179. * @opt_param string pageToken A continuation token that allows pagination.
  180. * @opt_param string maxResults The maximum number of comments to include in the response.
  181. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  182. * @return Google_CommunityPollCommentList
  183. */
  184. public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
  185. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  186. $params = array_merge($params, $optParams);
  187. $data = $this->__call('list', array($params));
  188. if ($this->useObjects()) {
  189. return new Google_CommunityPollCommentList($data);
  190. } else {
  191. return $data;
  192. }
  193. }
  194. }
  195. /**
  196. * The "communityPolls" collection of methods.
  197. * Typical usage is:
  198. * <code>
  199. * $orkutService = new Google_OrkutService(...);
  200. * $communityPolls = $orkutService->communityPolls;
  201. * </code>
  202. */
  203. class Google_CommunityPollsServiceResource extends Google_ServiceResource {
  204. /**
  205. * Retrieves the polls of a community. (communityPolls.list)
  206. *
  207. * @param int $communityId The ID of the community which polls will be listed.
  208. * @param array $optParams Optional parameters.
  209. *
  210. * @opt_param string pageToken A continuation token that allows pagination.
  211. * @opt_param string maxResults The maximum number of polls to include in the response.
  212. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  213. * @return Google_CommunityPollList
  214. */
  215. public function listCommunityPolls($communityId, $optParams = array()) {
  216. $params = array('communityId' => $communityId);
  217. $params = array_merge($params, $optParams);
  218. $data = $this->__call('list', array($params));
  219. if ($this->useObjects()) {
  220. return new Google_CommunityPollList($data);
  221. } else {
  222. return $data;
  223. }
  224. }
  225. /**
  226. * Retrieves one specific poll of a community. (communityPolls.get)
  227. *
  228. * @param int $communityId The ID of the community for whose poll will be retrieved.
  229. * @param string $pollId The ID of the poll to get.
  230. * @param array $optParams Optional parameters.
  231. *
  232. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  233. * @return Google_CommunityPoll
  234. */
  235. public function get($communityId, $pollId, $optParams = array()) {
  236. $params = array('communityId' => $communityId, 'pollId' => $pollId);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('get', array($params));
  239. if ($this->useObjects()) {
  240. return new Google_CommunityPoll($data);
  241. } else {
  242. return $data;
  243. }
  244. }
  245. }
  246. /**
  247. * The "communityMessages" collection of methods.
  248. * Typical usage is:
  249. * <code>
  250. * $orkutService = new Google_OrkutService(...);
  251. * $communityMessages = $orkutService->communityMessages;
  252. * </code>
  253. */
  254. class Google_CommunityMessagesServiceResource extends Google_ServiceResource {
  255. /**
  256. * Adds a message to a given community topic. (communityMessages.insert)
  257. *
  258. * @param int $communityId The ID of the community the message should be added to.
  259. * @param string $topicId The ID of the topic the message should be added to.
  260. * @param Google_CommunityMessage $postBody
  261. * @param array $optParams Optional parameters.
  262. * @return Google_CommunityMessage
  263. */
  264. public function insert($communityId, $topicId, Google_CommunityMessage $postBody, $optParams = array()) {
  265. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody);
  266. $params = array_merge($params, $optParams);
  267. $data = $this->__call('insert', array($params));
  268. if ($this->useObjects()) {
  269. return new Google_CommunityMessage($data);
  270. } else {
  271. return $data;
  272. }
  273. }
  274. /**
  275. * Retrieves the messages of a topic of a community. (communityMessages.list)
  276. *
  277. * @param int $communityId The ID of the community which messages will be listed.
  278. * @param string $topicId The ID of the topic which messages will be listed.
  279. * @param array $optParams Optional parameters.
  280. *
  281. * @opt_param string pageToken A continuation token that allows pagination.
  282. * @opt_param string maxResults The maximum number of messages to include in the response.
  283. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  284. * @return Google_CommunityMessageList
  285. */
  286. public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
  287. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  288. $params = array_merge($params, $optParams);
  289. $data = $this->__call('list', array($params));
  290. if ($this->useObjects()) {
  291. return new Google_CommunityMessageList($data);
  292. } else {
  293. return $data;
  294. }
  295. }
  296. /**
  297. * Moves a message of the community to the trash folder. (communityMessages.delete)
  298. *
  299. * @param int $communityId The ID of the community whose message will be moved to the trash folder.
  300. * @param string $topicId The ID of the topic whose message will be moved to the trash folder.
  301. * @param string $messageId The ID of the message to be moved to the trash folder.
  302. * @param array $optParams Optional parameters.
  303. */
  304. public function delete($communityId, $topicId, $messageId, $optParams = array()) {
  305. $params = array('communityId' => $communityId, 'topicId' => $topicId, 'messageId' => $messageId);
  306. $params = array_merge($params, $optParams);
  307. $data = $this->__call('delete', array($params));
  308. return $data;
  309. }
  310. }
  311. /**
  312. * The "communityTopics" collection of methods.
  313. * Typical usage is:
  314. * <code>
  315. * $orkutService = new Google_OrkutService(...);
  316. * $communityTopics = $orkutService->communityTopics;
  317. * </code>
  318. */
  319. class Google_CommunityTopicsServiceResource extends Google_ServiceResource {
  320. /**
  321. * Adds a topic to a given community. (communityTopics.insert)
  322. *
  323. * @param int $communityId The ID of the community the topic should be added to.
  324. * @param Google_CommunityTopic $postBody
  325. * @param array $optParams Optional parameters.
  326. *
  327. * @opt_param bool isShout Whether this topic is a shout.
  328. * @return Google_CommunityTopic
  329. */
  330. public function insert($communityId, Google_CommunityTopic $postBody, $optParams = array()) {
  331. $params = array('communityId' => $communityId, 'postBody' => $postBody);
  332. $params = array_merge($params, $optParams);
  333. $data = $this->__call('insert', array($params));
  334. if ($this->useObjects()) {
  335. return new Google_CommunityTopic($data);
  336. } else {
  337. return $data;
  338. }
  339. }
  340. /**
  341. * Retrieves a topic of a community. (communityTopics.get)
  342. *
  343. * @param int $communityId The ID of the community whose topic will be retrieved.
  344. * @param string $topicId The ID of the topic to get.
  345. * @param array $optParams Optional parameters.
  346. *
  347. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  348. * @return Google_CommunityTopic
  349. */
  350. public function get($communityId, $topicId, $optParams = array()) {
  351. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  352. $params = array_merge($params, $optParams);
  353. $data = $this->__call('get', array($params));
  354. if ($this->useObjects()) {
  355. return new Google_CommunityTopic($data);
  356. } else {
  357. return $data;
  358. }
  359. }
  360. /**
  361. * Retrieves the topics of a community. (communityTopics.list)
  362. *
  363. * @param int $communityId The ID of the community which topics will be listed.
  364. * @param array $optParams Optional parameters.
  365. *
  366. * @opt_param string pageToken A continuation token that allows pagination.
  367. * @opt_param string maxResults The maximum number of topics to include in the response.
  368. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  369. * @return Google_CommunityTopicList
  370. */
  371. public function listCommunityTopics($communityId, $optParams = array()) {
  372. $params = array('communityId' => $communityId);
  373. $params = array_merge($params, $optParams);
  374. $data = $this->__call('list', array($params));
  375. if ($this->useObjects()) {
  376. return new Google_CommunityTopicList($data);
  377. } else {
  378. return $data;
  379. }
  380. }
  381. /**
  382. * Moves a topic of the community to the trash folder. (communityTopics.delete)
  383. *
  384. * @param int $communityId The ID of the community whose topic will be moved to the trash folder.
  385. * @param string $topicId The ID of the topic to be moved to the trash folder.
  386. * @param array $optParams Optional parameters.
  387. */
  388. public function delete($communityId, $topicId, $optParams = array()) {
  389. $params = array('communityId' => $communityId, 'topicId' => $topicId);
  390. $params = array_merge($params, $optParams);
  391. $data = $this->__call('delete', array($params));
  392. return $data;
  393. }
  394. }
  395. /**
  396. * The "comments" collection of methods.
  397. * Typical usage is:
  398. * <code>
  399. * $orkutService = new Google_OrkutService(...);
  400. * $comments = $orkutService->comments;
  401. * </code>
  402. */
  403. class Google_CommentsServiceResource extends Google_ServiceResource {
  404. /**
  405. * Inserts a new comment to an activity. (comments.insert)
  406. *
  407. * @param string $activityId The ID of the activity to contain the new comment.
  408. * @param Google_Comment $postBody
  409. * @param array $optParams Optional parameters.
  410. * @return Google_Comment
  411. */
  412. public function insert($activityId, Google_Comment $postBody, $optParams = array()) {
  413. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  414. $params = array_merge($params, $optParams);
  415. $data = $this->__call('insert', array($params));
  416. if ($this->useObjects()) {
  417. return new Google_Comment($data);
  418. } else {
  419. return $data;
  420. }
  421. }
  422. /**
  423. * Retrieves an existing comment. (comments.get)
  424. *
  425. * @param string $commentId ID of the comment to get.
  426. * @param array $optParams Optional parameters.
  427. *
  428. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  429. * @return Google_Comment
  430. */
  431. public function get($commentId, $optParams = array()) {
  432. $params = array('commentId' => $commentId);
  433. $params = array_merge($params, $optParams);
  434. $data = $this->__call('get', array($params));
  435. if ($this->useObjects()) {
  436. return new Google_Comment($data);
  437. } else {
  438. return $data;
  439. }
  440. }
  441. /**
  442. * Retrieves a list of comments, possibly filtered. (comments.list)
  443. *
  444. * @param string $activityId The ID of the activity containing the comments.
  445. * @param array $optParams Optional parameters.
  446. *
  447. * @opt_param string orderBy Sort search results.
  448. * @opt_param string pageToken A continuation token that allows pagination.
  449. * @opt_param string maxResults The maximum number of activities to include in the response.
  450. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  451. * @return Google_CommentList
  452. */
  453. public function listComments($activityId, $optParams = array()) {
  454. $params = array('activityId' => $activityId);
  455. $params = array_merge($params, $optParams);
  456. $data = $this->__call('list', array($params));
  457. if ($this->useObjects()) {
  458. return new Google_CommentList($data);
  459. } else {
  460. return $data;
  461. }
  462. }
  463. /**
  464. * Deletes an existing comment. (comments.delete)
  465. *
  466. * @param string $commentId ID of the comment to remove.
  467. * @param array $optParams Optional parameters.
  468. */
  469. public function delete($commentId, $optParams = array()) {
  470. $params = array('commentId' => $commentId);
  471. $params = array_merge($params, $optParams);
  472. $data = $this->__call('delete', array($params));
  473. return $data;
  474. }
  475. }
  476. /**
  477. * The "acl" collection of methods.
  478. * Typical usage is:
  479. * <code>
  480. * $orkutService = new Google_OrkutService(...);
  481. * $acl = $orkutService->acl;
  482. * </code>
  483. */
  484. class Google_AclServiceResource extends Google_ServiceResource {
  485. /**
  486. * Excludes an element from the ACL of the activity. (acl.delete)
  487. *
  488. * @param string $activityId ID of the activity.
  489. * @param string $userId ID of the user to be removed from the activity.
  490. * @param array $optParams Optional parameters.
  491. */
  492. public function delete($activityId, $userId, $optParams = array()) {
  493. $params = array('activityId' => $activityId, 'userId' => $userId);
  494. $params = array_merge($params, $optParams);
  495. $data = $this->__call('delete', array($params));
  496. return $data;
  497. }
  498. }
  499. /**
  500. * The "communityRelated" collection of methods.
  501. * Typical usage is:
  502. * <code>
  503. * $orkutService = new Google_OrkutService(...);
  504. * $communityRelated = $orkutService->communityRelated;
  505. * </code>
  506. */
  507. class Google_CommunityRelatedServiceResource extends Google_ServiceResource {
  508. /**
  509. * Retrieves the communities related to another one. (communityRelated.list)
  510. *
  511. * @param int $communityId The ID of the community whose related communities will be listed.
  512. * @param array $optParams Optional parameters.
  513. *
  514. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  515. * @return Google_CommunityList
  516. */
  517. public function listCommunityRelated($communityId, $optParams = array()) {
  518. $params = array('communityId' => $communityId);
  519. $params = array_merge($params, $optParams);
  520. $data = $this->__call('list', array($params));
  521. if ($this->useObjects()) {
  522. return new Google_CommunityList($data);
  523. } else {
  524. return $data;
  525. }
  526. }
  527. }
  528. /**
  529. * The "scraps" collection of methods.
  530. * Typical usage is:
  531. * <code>
  532. * $orkutService = new Google_OrkutService(...);
  533. * $scraps = $orkutService->scraps;
  534. * </code>
  535. */
  536. class Google_ScrapsServiceResource extends Google_ServiceResource {
  537. /**
  538. * Creates a new scrap. (scraps.insert)
  539. *
  540. * @param Google_Activity $postBody
  541. * @param array $optParams Optional parameters.
  542. * @return Google_Activity
  543. */
  544. public function insert(Google_Activity $postBody, $optParams = array()) {
  545. $params = array('postBody' => $postBody);
  546. $params = array_merge($params, $optParams);
  547. $data = $this->__call('insert', array($params));
  548. if ($this->useObjects()) {
  549. return new Google_Activity($data);
  550. } else {
  551. return $data;
  552. }
  553. }
  554. }
  555. /**
  556. * The "communityPollVotes" collection of methods.
  557. * Typical usage is:
  558. * <code>
  559. * $orkutService = new Google_OrkutService(...);
  560. * $communityPollVotes = $orkutService->communityPollVotes;
  561. * </code>
  562. */
  563. class Google_CommunityPollVotesServiceResource extends Google_ServiceResource {
  564. /**
  565. * Votes on a community poll. (communityPollVotes.insert)
  566. *
  567. * @param int $communityId The ID of the community whose poll is being voted.
  568. * @param string $pollId The ID of the poll being voted.
  569. * @param Google_CommunityPollVote $postBody
  570. * @param array $optParams Optional parameters.
  571. * @return Google_CommunityPollVote
  572. */
  573. public function insert($communityId, $pollId, Google_CommunityPollVote $postBody, $optParams = array()) {
  574. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
  575. $params = array_merge($params, $optParams);
  576. $data = $this->__call('insert', array($params));
  577. if ($this->useObjects()) {
  578. return new Google_CommunityPollVote($data);
  579. } else {
  580. return $data;
  581. }
  582. }
  583. }
  584. /**
  585. * The "communities" collection of methods.
  586. * Typical usage is:
  587. * <code>
  588. * $orkutService = new Google_OrkutService(...);
  589. * $communities = $orkutService->communities;
  590. * </code>
  591. */
  592. class Google_CommunitiesServiceResource extends Google_ServiceResource {
  593. /**
  594. * Retrieves the list of communities the current user is a member of. (communities.list)
  595. *
  596. * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller.
  597. * @param array $optParams Optional parameters.
  598. *
  599. * @opt_param string orderBy How to order the communities by.
  600. * @opt_param string maxResults The maximum number of communities to include in the response.
  601. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  602. * @return Google_CommunityList
  603. */
  604. public function listCommunities($userId, $optParams = array()) {
  605. $params = array('userId' => $userId);
  606. $params = array_merge($params, $optParams);
  607. $data = $this->__call('list', array($params));
  608. if ($this->useObjects()) {
  609. return new Google_CommunityList($data);
  610. } else {
  611. return $data;
  612. }
  613. }
  614. /**
  615. * Retrieves the basic information (aka. profile) of a community. (communities.get)
  616. *
  617. * @param int $communityId The ID of the community to get.
  618. * @param array $optParams Optional parameters.
  619. *
  620. * @opt_param string hl Specifies the interface language (host language) of your user interface.
  621. * @return Google_Community
  622. */
  623. public function get($communityId, $optParams = array()) {
  624. $params = array('communityId' => $communityId);
  625. $params = array_merge($params, $optParams);
  626. $data = $this->__call('get', array($params));
  627. if ($this->useObjects()) {
  628. return new Google_Community($data);
  629. } else {
  630. return $data;
  631. }
  632. }
  633. }
  634. /**
  635. * The "communityFollow" collection of methods.
  636. * Typical usage is:
  637. * <code>
  638. * $orkutService = new Google_OrkutService(...);
  639. * $communityFollow = $orkutService->communityFollow;
  640. * </code>
  641. */
  642. class Google_CommunityFollowServiceResource extends Google_ServiceResource {
  643. /**
  644. * Adds a user as a follower of a community. (communityFollow.insert)
  645. *
  646. * @param int $communityId ID of the community.
  647. * @param string $userId ID of the user.
  648. * @param array $optParams Optional parameters.
  649. * @return Google_CommunityMembers
  650. */
  651. public function insert($communityId, $userId, $optParams = array()) {
  652. $params = array('communityId' => $communityId, 'userId' => $userId);
  653. $params = array_merge($params, $optParams);
  654. $data = $this->__call('insert', array($params));
  655. if ($this->useObjects()) {
  656. return new Google_CommunityMembers($data);
  657. } else {
  658. return $data;
  659. }
  660. }
  661. /**
  662. * Removes a user from the followers of a community. (communityFollow.delete)
  663. *
  664. * @param int $communityId ID of the community.
  665. * @param string $userId ID of the user.
  666. * @param array $optParams Optional parameters.
  667. */
  668. public function delete($communityId, $userId, $optParams = array()) {
  669. $params = array('communityId' => $communityId, 'userId' => $userId);
  670. $params = array_merge($params, $optParams);
  671. $data = $this->__call('delete', array($params));
  672. return $data;
  673. }
  674. }
  675. /**
  676. * The "activityVisibility" collection of methods.
  677. * Typical usage is:
  678. * <code>
  679. * $orkutService = new Google_OrkutService(...);
  680. * $activityVisibility = $orkutService->activityVisibility;
  681. * </code>
  682. */
  683. class Google_ActivityVisibilityServiceResource extends Google_ServiceResource {
  684. /**
  685. * Updates the visibility of an existing activity. This method supports patch semantics.
  686. * (activityVisibility.patch)
  687. *
  688. * @param string $activityId ID of the activity.
  689. * @param Google_Visibility $postBody
  690. * @param array $optParams Optional parameters.
  691. * @return Google_Visibility
  692. */
  693. public function patch($activityId, Google_Visibility $postBody, $optParams = array()) {
  694. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  695. $params = array_merge($params, $optParams);
  696. $data = $this->__call('patch', array($params));
  697. if ($this->useObjects()) {
  698. return new Google_Visibility($data);
  699. } else {
  700. return $data;
  701. }
  702. }
  703. /**
  704. * Updates the visibility of an existing activity. (activityVisibility.update)
  705. *
  706. * @param string $activityId ID of the activity.
  707. * @param Google_Visibility $postBody
  708. * @param array $optParams Optional parameters.
  709. * @return Google_Visibility
  710. */
  711. public function update($activityId, Google_Visibility $postBody, $optParams = array()) {
  712. $params = array('activityId' => $activityId, 'postBody' => $postBody);
  713. $params = array_merge($params, $optParams);
  714. $data = $this->__call('update', array($params));
  715. if ($this->useObjects()) {
  716. return new Google_Visibility($data);
  717. } else {
  718. return $data;
  719. }
  720. }
  721. /**
  722. * Gets the visibility of an existing activity. (activityVisibility.get)
  723. *
  724. * @param string $activityId ID of the activity to get the visibility.
  725. * @param array $optParams Optional parameters.
  726. * @return Google_Visibility
  727. */
  728. public function get($activityId, $optParams = array()) {
  729. $params = array('activityId' => $activityId);
  730. $params = array_merge($params, $optParams);
  731. $data = $this->__call('get', array($params));
  732. if ($this->useObjects()) {
  733. return new Google_Visibility($data);
  734. } else {
  735. return $data;
  736. }
  737. }
  738. }
  739. /**
  740. * The "badges" collection of methods.
  741. * Typical usage is:
  742. * <code>
  743. * $orkutService = new Google_OrkutService(...);
  744. * $badges = $orkutService->badges;
  745. * </code>
  746. */
  747. class Google_BadgesServiceResource extends Google_ServiceResource {
  748. /**
  749. * Retrieves the list of visible badges of a user. (badges.list)
  750. *
  751. * @param string $userId The id of the user whose badges will be listed. Can be me to refer to caller.
  752. * @param array $optParams Optional parameters.
  753. * @return Google_BadgeList
  754. */
  755. public function listBadges($userId, $optParams = array()) {
  756. $params = array('userId' => $userId);
  757. $params = array_merge($params, $optParams);
  758. $data = $this->__call('list', array($params));
  759. if ($this->useObjects()) {
  760. return new Google_BadgeList($data);
  761. } else {
  762. return $data;
  763. }
  764. }
  765. /**
  766. * Retrieves a badge from a user. (badges.get)
  767. *
  768. * @param string $userId The ID of the user whose badges will be listed. Can be me to refer to caller.
  769. * @param string $badgeId The ID of the badge that will be retrieved.
  770. * @param array $optParams Optional parameters.
  771. * @return Google_Badge
  772. */
  773. public function get($userId, $badgeId, $optParams = array()) {
  774. $params = array('userId' => $userId, 'badgeId' => $badgeId);
  775. $params = array_merge($params, $optParams);
  776. $data = $this->__call('get', array($params));
  777. if ($this->useObjects()) {
  778. return new Google_Badge($data);
  779. } else {
  780. return $data;
  781. }
  782. }
  783. }
  784. /**
  785. * The "counters" collection of methods.
  786. * Typical usage is:
  787. * <code>
  788. * $orkutService = new Google_OrkutService(...);
  789. * $counters = $orkutService->counters;
  790. * </code>
  791. */
  792. class Google_CountersServiceResource extends Google_ServiceResource {
  793. /**
  794. * Retrieves the counters of a user. (counters.list)
  795. *
  796. * @param string $userId The ID of the user whose counters will be listed. Can be me to refer to caller.
  797. * @param array $optParams Optional parameters.
  798. * @return Google_Counters
  799. */
  800. public function listCounters($userId, $optParams = array()) {
  801. $params = array('userId' => $userId);
  802. $params = array_merge($params, $optParams);
  803. $data = $this->__call('list', array($params));
  804. if ($this->useObjects()) {
  805. return new Google_Counters($data);
  806. } else {
  807. return $data;
  808. }
  809. }
  810. }
  811. /**
  812. * Service definition for Google_Orkut (v2).
  813. *
  814. * <p>
  815. * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
  816. * </p>
  817. *
  818. * <p>
  819. * For more information about this service, see the
  820. * <a href="http://code.google.com/apis/orkut/v2/reference.html" target="_blank">API Documentation</a>
  821. * </p>
  822. *
  823. * @author Google, Inc.
  824. */
  825. class Google_OrkutService extends Google_Service {
  826. public $communityMembers;
  827. public $activities;
  828. public $communityPollComments;
  829. public $communityPolls;
  830. public $communityMessages;
  831. public $communityTopics;
  832. public $comments;
  833. public $acl;
  834. public $communityRelated;
  835. public $scraps;
  836. public $communityPollVotes;
  837. public $communities;
  838. public $communityFollow;
  839. public $activityVisibility;
  840. public $badges;
  841. public $counters;
  842. /**
  843. * Constructs the internal representation of the Orkut service.
  844. *
  845. * @param Google_Client $client
  846. */
  847. public function __construct(Google_Client $client) {
  848. $this->servicePath = 'orkut/v2/';
  849. $this->version = 'v2';
  850. $this->serviceName = 'orkut';
  851. $client->addService($this->serviceName, $this->version);
  852. $this->communityMembers = new Google_CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "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"}}, "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": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  853. $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["all", "scraps", "stream"]}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}", "id": "orkut.activities.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  854. $this->communityPollComments = new Google_CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "response": {"$ref": "CommunityPollComment"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "id": "orkut.communityPollComments.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pollId": {"required": true, "type": "string", "location": "path"}, "pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
  855. $this->communityPolls = new Google_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": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "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": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
  856. $this->communityMessages = new Google_CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityMessage"}, "response": {"$ref": "CommunityMessage"}, "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "id": "orkut.communityMessages.insert"}, "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": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}, "topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "messageId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "httpMethod": "DELETE"}}}', true));
  857. $this->communityTopics = new Google_CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityTopic"}, "response": {"$ref": "CommunityTopic"}, "httpMethod": "POST", "path": "communities/{communityId}/topics", "id": "orkut.communityTopics.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}, "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": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
  858. $this->comments = new Google_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"}, "response": {"$ref": "Comment"}, "httpMethod": "POST", "path": "activities/{activityId}/comments", "id": "orkut.comments.insert"}, "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"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "comments/{commentId}", "id": "orkut.comments.delete", "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  859. $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  860. $this->communityRelated = new Google_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": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityRelated.list", "httpMethod": "GET", "path": "communities/{communityId}/related", "response": {"$ref": "CommunityList"}}}}', true));
  861. $this->scraps = new Google_ScrapsServiceResource($this, $this->serviceName, 'scraps', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "httpMethod": "POST", "path": "activities/scraps", "id": "orkut.scraps.insert"}}}', true));
  862. $this->communityPollVotes = new Google_CommunityPollVotesServiceResource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "response": {"$ref": "CommunityPollVote"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/votes", "id": "orkut.communityPollVotes.insert"}}}', true));
  863. $this->communities = new Google_CommunitiesServiceResource($this, $this->serviceName, 'communities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"enum": ["id", "ranked"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.list", "httpMethod": "GET", "path": "people/{userId}/communities", "response": {"$ref": "CommunityList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.get", "httpMethod": "GET", "path": "communities/{communityId}", "response": {"$ref": "Community"}}}}', true));
  864. $this->communityFollow = new Google_CommunityFollowServiceResource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityFollow.insert", "httpMethod": "POST", "path": "communities/{communityId}/followers/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/followers/{userId}", "id": "orkut.communityFollow.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  865. $this->activityVisibility = new Google_ActivityVisibilityServiceResource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PATCH", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.patch"}, "update": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "httpMethod": "PUT", "path": "activities/{activityId}/visibility", "id": "orkut.activityVisibility.update"}, "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"}}}}', true));
  866. $this->badges = new Google_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": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.badges.get", "httpMethod": "GET", "path": "people/{userId}/badges/{badgeId}", "response": {"$ref": "Badge"…

Large files files are truncated, but you can click here to view the full file