Google_Service_Plus

Service definition for Plus (v1).

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Plus.php  
  1. class Google_Service_Plus extends Google_Service 
  2. /** Know your basic profile info and list of people in your circles.. */ 
  3. const PLUS_LOGIN = 
  4. "https://www.googleapis.com/auth/plus.login"; 
  5. /** Know who you are on Google. */ 
  6. const PLUS_ME = 
  7. "https://www.googleapis.com/auth/plus.me"; 
  8. /** View your email address. */ 
  9. const USERINFO_EMAIL = 
  10. "https://www.googleapis.com/auth/userinfo.email"; 
  11. /** View your basic profile info. */ 
  12. const USERINFO_PROFILE = 
  13. "https://www.googleapis.com/auth/userinfo.profile"; 
  14.  
  15. public $activities; 
  16. public $comments; 
  17. public $moments; 
  18. public $people; 
  19.  
  20.  
  21. /** 
  22. * Constructs the internal representation of the Plus service. 
  23. * @param Google_Client $client 
  24. */ 
  25. public function __construct(Google_Client $client) 
  26. parent::__construct($client); 
  27. $this->servicePath = 'plus/v1/'; 
  28. $this->version = 'v1'; 
  29. $this->serviceName = 'plus'; 
  30.  
  31. $this->activities = new Google_Service_Plus_Activities_Resource( 
  32. $this,  
  33. $this->serviceName,  
  34. 'activities',  
  35. array( 
  36. 'methods' => array( 
  37. 'get' => array( 
  38. 'path' => 'activities/{activityId}',  
  39. 'httpMethod' => 'GET',  
  40. 'parameters' => array( 
  41. 'activityId' => array( 
  42. 'location' => 'path',  
  43. 'type' => 'string',  
  44. 'required' => true,  
  45. ),  
  46. ),  
  47. ), 'list' => array( 
  48. 'path' => 'people/{userId}/activities/{collection}',  
  49. 'httpMethod' => 'GET',  
  50. 'parameters' => array( 
  51. 'userId' => array( 
  52. 'location' => 'path',  
  53. 'type' => 'string',  
  54. 'required' => true,  
  55. ),  
  56. 'collection' => array( 
  57. 'location' => 'path',  
  58. 'type' => 'string',  
  59. 'required' => true,  
  60. ),  
  61. 'pageToken' => array( 
  62. 'location' => 'query',  
  63. 'type' => 'string',  
  64. ),  
  65. 'maxResults' => array( 
  66. 'location' => 'query',  
  67. 'type' => 'integer',  
  68. ),  
  69. ),  
  70. ), 'search' => array( 
  71. 'path' => 'activities',  
  72. 'httpMethod' => 'GET',  
  73. 'parameters' => array( 
  74. 'query' => array( 
  75. 'location' => 'query',  
  76. 'type' => 'string',  
  77. 'required' => true,  
  78. ),  
  79. 'orderBy' => array( 
  80. 'location' => 'query',  
  81. 'type' => 'string',  
  82. ),  
  83. 'pageToken' => array( 
  84. 'location' => 'query',  
  85. 'type' => 'string',  
  86. ),  
  87. 'maxResults' => array( 
  88. 'location' => 'query',  
  89. 'type' => 'integer',  
  90. ),  
  91. 'language' => array( 
  92. 'location' => 'query',  
  93. 'type' => 'string',  
  94. ),  
  95. ),  
  96. ),  
  97. ); 
  98. $this->comments = new Google_Service_Plus_Comments_Resource( 
  99. $this,  
  100. $this->serviceName,  
  101. 'comments',  
  102. array( 
  103. 'methods' => array( 
  104. 'get' => array( 
  105. 'path' => 'comments/{commentId}',  
  106. 'httpMethod' => 'GET',  
  107. 'parameters' => array( 
  108. 'commentId' => array( 
  109. 'location' => 'path',  
  110. 'type' => 'string',  
  111. 'required' => true,  
  112. ),  
  113. ),  
  114. ), 'list' => array( 
  115. 'path' => 'activities/{activityId}/comments',  
  116. 'httpMethod' => 'GET',  
  117. 'parameters' => array( 
  118. 'activityId' => array( 
  119. 'location' => 'path',  
  120. 'type' => 'string',  
  121. 'required' => true,  
  122. ),  
  123. 'pageToken' => array( 
  124. 'location' => 'query',  
  125. 'type' => 'string',  
  126. ),  
  127. 'sortOrder' => array( 
  128. 'location' => 'query',  
  129. 'type' => 'string',  
  130. ),  
  131. 'maxResults' => array( 
  132. 'location' => 'query',  
  133. 'type' => 'integer',  
  134. ),  
  135. ),  
  136. ),  
  137. ); 
  138. $this->moments = new Google_Service_Plus_Moments_Resource( 
  139. $this,  
  140. $this->serviceName,  
  141. 'moments',  
  142. array( 
  143. 'methods' => array( 
  144. 'insert' => array( 
  145. 'path' => 'people/{userId}/moments/{collection}',  
  146. 'httpMethod' => 'POST',  
  147. 'parameters' => array( 
  148. 'userId' => array( 
  149. 'location' => 'path',  
  150. 'type' => 'string',  
  151. 'required' => true,  
  152. ),  
  153. 'collection' => array( 
  154. 'location' => 'path',  
  155. 'type' => 'string',  
  156. 'required' => true,  
  157. ),  
  158. 'debug' => array( 
  159. 'location' => 'query',  
  160. 'type' => 'boolean',  
  161. ),  
  162. ),  
  163. ), 'list' => array( 
  164. 'path' => 'people/{userId}/moments/{collection}',  
  165. 'httpMethod' => 'GET',  
  166. 'parameters' => array( 
  167. 'userId' => array( 
  168. 'location' => 'path',  
  169. 'type' => 'string',  
  170. 'required' => true,  
  171. ),  
  172. 'collection' => array( 
  173. 'location' => 'path',  
  174. 'type' => 'string',  
  175. 'required' => true,  
  176. ),  
  177. 'maxResults' => array( 
  178. 'location' => 'query',  
  179. 'type' => 'integer',  
  180. ),  
  181. 'pageToken' => array( 
  182. 'location' => 'query',  
  183. 'type' => 'string',  
  184. ),  
  185. 'targetUrl' => array( 
  186. 'location' => 'query',  
  187. 'type' => 'string',  
  188. ),  
  189. 'type' => array( 
  190. 'location' => 'query',  
  191. 'type' => 'string',  
  192. ),  
  193. ),  
  194. ), 'remove' => array( 
  195. 'path' => 'moments/{id}',  
  196. 'httpMethod' => 'DELETE',  
  197. 'parameters' => array( 
  198. 'id' => array( 
  199. 'location' => 'path',  
  200. 'type' => 'string',  
  201. 'required' => true,  
  202. ),  
  203. ),  
  204. ),  
  205. ); 
  206. $this->people = new Google_Service_Plus_People_Resource( 
  207. $this,  
  208. $this->serviceName,  
  209. 'people',  
  210. array( 
  211. 'methods' => array( 
  212. 'get' => array( 
  213. 'path' => 'people/{userId}',  
  214. 'httpMethod' => 'GET',  
  215. 'parameters' => array( 
  216. 'userId' => array( 
  217. 'location' => 'path',  
  218. 'type' => 'string',  
  219. 'required' => true,  
  220. ),  
  221. ),  
  222. ), 'list' => array( 
  223. 'path' => 'people/{userId}/people/{collection}',  
  224. 'httpMethod' => 'GET',  
  225. 'parameters' => array( 
  226. 'userId' => array( 
  227. 'location' => 'path',  
  228. 'type' => 'string',  
  229. 'required' => true,  
  230. ),  
  231. 'collection' => array( 
  232. 'location' => 'path',  
  233. 'type' => 'string',  
  234. 'required' => true,  
  235. ),  
  236. 'orderBy' => array( 
  237. 'location' => 'query',  
  238. 'type' => 'string',  
  239. ),  
  240. 'pageToken' => array( 
  241. 'location' => 'query',  
  242. 'type' => 'string',  
  243. ),  
  244. 'maxResults' => array( 
  245. 'location' => 'query',  
  246. 'type' => 'integer',  
  247. ),  
  248. ),  
  249. ), 'listByActivity' => array( 
  250. 'path' => 'activities/{activityId}/people/{collection}',  
  251. 'httpMethod' => 'GET',  
  252. 'parameters' => array( 
  253. 'activityId' => array( 
  254. 'location' => 'path',  
  255. 'type' => 'string',  
  256. 'required' => true,  
  257. ),  
  258. 'collection' => array( 
  259. 'location' => 'path',  
  260. 'type' => 'string',  
  261. 'required' => true,  
  262. ),  
  263. 'pageToken' => array( 
  264. 'location' => 'query',  
  265. 'type' => 'string',  
  266. ),  
  267. 'maxResults' => array( 
  268. 'location' => 'query',  
  269. 'type' => 'integer',  
  270. ),  
  271. ),  
  272. ), 'search' => array( 
  273. 'path' => 'people',  
  274. 'httpMethod' => 'GET',  
  275. 'parameters' => array( 
  276. 'query' => array( 
  277. 'location' => 'query',  
  278. 'type' => 'string',  
  279. 'required' => true,  
  280. ),  
  281. 'pageToken' => array( 
  282. 'location' => 'query',  
  283. 'type' => 'string',  
  284. ),  
  285. 'maxResults' => array( 
  286. 'location' => 'query',  
  287. 'type' => 'integer',  
  288. ),  
  289. 'language' => array( 
  290. 'location' => 'query',  
  291. 'type' => 'string',  
  292. ),  
  293. ),  
  294. ),  
  295. );