John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="plus_v1.html">Google+ API</a> . <a href="plus_v1.activities.html">activities</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#get">get(activityId)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Shut down. See https://developers.google.com/+/api-shutdown for more details.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 | <code><a href="#list">list(userId, collection, maxResults=None, pageToken=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 82 | <p class="firstline">Shut down. See https://developers.google.com/+/api-shutdown for more details.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 83 | <p class="toc_element"> |
| 84 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 85 | <p class="firstline">Retrieves the next page of results.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 87 | <code><a href="#search">search(query, language=None, maxResults=None, orderBy=None, pageToken=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <p class="firstline">Shut down. See https://developers.google.com/+/api-shutdown for more details.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p> |
| 91 | <p class="firstline">Retrieves the next page of results.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="get">get(activityId)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 95 | <pre>Shut down. See https://developers.google.com/+/api-shutdown for more details. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 96 | |
| 97 | Args: |
| 98 | activityId: string, The ID of the activity to get. (required) |
| 99 | |
| 100 | Returns: |
| 101 | An object of the form: |
| 102 | |
| 103 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 104 | "access": { # Identifies who has access to see this activity. |
| 105 | "description": "A String", # Description of the access granted, suitable for display. |
| 106 | "items": [ # The list of access entries. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 107 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 108 | "displayName": "A String", # A descriptive name for this entry. Suitable for display. |
| 109 | "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set. |
| 110 | "type": "A String", # The type of entry describing to whom access is granted. Possible values are: |
| 111 | # - "person" - Access to an individual. |
| 112 | # - "circle" - Access to members of a circle. |
| 113 | # - "myCircles" - Access to members of all the person's circles. |
| 114 | # - "extendedCircles" - Access to members of all the person's circles, plus all of the people in their circles. |
| 115 | # - "domain" - Access to members of the person's Google Apps domain. |
| 116 | # - "public" - Access to anyone on the web. |
| 117 | }, |
| 118 | ], |
| 119 | "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl". |
| 120 | }, |
| 121 | "actor": { # The person who performed this activity. |
| 122 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 123 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 124 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 125 | }, |
| 126 | }, |
| 127 | "displayName": "A String", # The name of the actor, suitable for display. |
| 128 | "id": "A String", # The ID of the actor's Person resource. |
| 129 | "image": { # The image representation of the actor. |
| 130 | "url": "A String", # The URL of the actor's profile photo. To resize the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side. |
| 131 | }, |
| 132 | "name": { # An object representation of the individual components of name. |
| 133 | "familyName": "A String", # The family name ("last name") of the actor. |
| 134 | "givenName": "A String", # The given name ("first name") of the actor. |
| 135 | }, |
| 136 | "url": "A String", # The link to the actor's Google profile. |
| 137 | "verification": { # Verification status of actor. |
| 138 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 139 | }, |
| 140 | }, |
| 141 | "address": "A String", # Street address where this activity occurred. |
| 142 | "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity. |
| 143 | "crosspostSource": "A String", # If this activity is a crosspost from another system, this property specifies the ID of the original activity. |
| 144 | "etag": "A String", # ETag of this response for caching purposes. |
| 145 | "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. |
| 146 | "id": "A String", # The ID of this activity. |
| 147 | "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity". |
| 148 | "location": { # The location where this activity occurred. |
| 149 | "address": { # The physical address of the place. |
| 150 | "formatted": "A String", # The formatted address for display. |
| 151 | }, |
| 152 | "displayName": "A String", # The display name of the place. |
| 153 | "id": "A String", # The id of the place. |
| 154 | "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place". |
| 155 | "position": { # The position of the place. |
| 156 | "latitude": 3.14, # The latitude of this position. |
| 157 | "longitude": 3.14, # The longitude of this position. |
| 158 | }, |
| 159 | }, |
| 160 | "object": { # The object of this activity. |
| 161 | "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor. |
| 162 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 163 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 164 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 165 | }, |
| 166 | }, |
| 167 | "displayName": "A String", # The original actor's name, which is suitable for display. |
| 168 | "id": "A String", # ID of the original actor. |
| 169 | "image": { # The image representation of the original actor. |
| 170 | "url": "A String", # A URL that points to a thumbnail photo of the original actor. |
| 171 | }, |
| 172 | "url": "A String", # A link to the original actor's Google profile. |
| 173 | "verification": { # Verification status of actor. |
| 174 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 175 | }, |
| 176 | }, |
| 177 | "attachments": [ # The media objects attached to this activity. |
| 178 | { |
| 179 | "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types. |
| 180 | "displayName": "A String", # The title of the attachment, such as a photo caption or an article title. |
| 181 | "embed": { # If the attachment is a video, the embeddable link. |
| 182 | "type": "A String", # Media type of the link. |
| 183 | "url": "A String", # URL of the link. |
| 184 | }, |
| 185 | "fullImage": { # The full image URL for photo attachments. |
| 186 | "height": 42, # The height, in pixels, of the linked resource. |
| 187 | "type": "A String", # Media type of the link. |
| 188 | "url": "A String", # URL of the image. |
| 189 | "width": 42, # The width, in pixels, of the linked resource. |
| 190 | }, |
| 191 | "id": "A String", # The ID of the attachment. |
| 192 | "image": { # The preview image for photos or videos. |
| 193 | "height": 42, # The height, in pixels, of the linked resource. |
| 194 | "type": "A String", # Media type of the link. |
| 195 | "url": "A String", # Image URL. |
| 196 | "width": 42, # The width, in pixels, of the linked resource. |
| 197 | }, |
| 198 | "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values: |
| 199 | # - "photo" - A photo. |
| 200 | # - "album" - A photo album. |
| 201 | # - "video" - A video. |
| 202 | # - "article" - An article, specified by a link. |
| 203 | "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 204 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 205 | "description": "A String", # Potential name of the thumbnail. |
| 206 | "image": { # Image resource. |
| 207 | "height": 42, # The height, in pixels, of the linked resource. |
| 208 | "type": "A String", # Media type of the link. |
| 209 | "url": "A String", # Image url. |
| 210 | "width": 42, # The width, in pixels, of the linked resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 211 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 212 | "url": "A String", # URL of the webpage containing the image. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 213 | }, |
| 214 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 215 | "url": "A String", # The link to the attachment, which should be of type text/html. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 216 | }, |
| 217 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 218 | "content": "A String", # The HTML-formatted content, which is suitable for display. |
| 219 | "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared. |
| 220 | "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values: |
| 221 | # - "note" - Textual content. |
| 222 | # - "activity" - A Google+ activity. |
| 223 | "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request. |
| 224 | "plusoners": { # People who +1'd this activity. |
| 225 | "selfLink": "A String", # The URL for the collection of people who +1'd this activity. |
| 226 | "totalItems": 42, # Total number of people who +1'd this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 227 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 228 | "replies": { # Comments in reply to this activity. |
| 229 | "selfLink": "A String", # The URL for the collection of comments in reply to this activity. |
| 230 | "totalItems": 42, # Total number of comments on this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 231 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 232 | "resharers": { # People who reshared this activity. |
| 233 | "selfLink": "A String", # The URL for the collection of resharers. |
| 234 | "totalItems": 42, # Total number of people who reshared this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 235 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 236 | "url": "A String", # The URL that points to the linked resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 237 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 238 | "placeId": "A String", # ID of the place where this activity occurred. |
| 239 | "placeName": "A String", # Name of the place where this activity occurred. |
| 240 | "provider": { # The service provider that initially published this activity. |
| 241 | "title": "A String", # Name of the service provider. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 242 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 243 | "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. |
| 244 | "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. |
| 245 | "title": "A String", # Title of this activity. |
| 246 | "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. |
| 247 | "url": "A String", # The link to this activity. |
| 248 | "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values: |
| 249 | # - "post" - Publish content to the stream. |
| 250 | # - "share" - Reshare an activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 251 | }</pre> |
| 252 | </div> |
| 253 | |
| 254 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 255 | <code class="details" id="list">list(userId, collection, maxResults=None, pageToken=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 256 | <pre>Shut down. See https://developers.google.com/+/api-shutdown for more details. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 257 | |
| 258 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 259 | userId: string, The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user. (required) |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 260 | collection: string, The collection of activities to list. (required) |
| 261 | Allowed values |
| 262 | public - All public activities created by the specified user. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 263 | maxResults: integer, The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 264 | pageToken: string, The continuation token, which is 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. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 265 | |
| 266 | Returns: |
| 267 | An object of the form: |
| 268 | |
| 269 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 270 | "etag": "A String", # ETag of this response for caching purposes. |
| 271 | "id": "A String", # The ID of this collection of activities. Deprecated. |
| 272 | "items": [ # The activities in this page of results. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 273 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 274 | "access": { # Identifies who has access to see this activity. |
| 275 | "description": "A String", # Description of the access granted, suitable for display. |
| 276 | "items": [ # The list of access entries. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 277 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 278 | "displayName": "A String", # A descriptive name for this entry. Suitable for display. |
| 279 | "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set. |
| 280 | "type": "A String", # The type of entry describing to whom access is granted. Possible values are: |
| 281 | # - "person" - Access to an individual. |
| 282 | # - "circle" - Access to members of a circle. |
| 283 | # - "myCircles" - Access to members of all the person's circles. |
| 284 | # - "extendedCircles" - Access to members of all the person's circles, plus all of the people in their circles. |
| 285 | # - "domain" - Access to members of the person's Google Apps domain. |
| 286 | # - "public" - Access to anyone on the web. |
| 287 | }, |
| 288 | ], |
| 289 | "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl". |
| 290 | }, |
| 291 | "actor": { # The person who performed this activity. |
| 292 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 293 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 294 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 295 | }, |
| 296 | }, |
| 297 | "displayName": "A String", # The name of the actor, suitable for display. |
| 298 | "id": "A String", # The ID of the actor's Person resource. |
| 299 | "image": { # The image representation of the actor. |
| 300 | "url": "A String", # The URL of the actor's profile photo. To resize the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side. |
| 301 | }, |
| 302 | "name": { # An object representation of the individual components of name. |
| 303 | "familyName": "A String", # The family name ("last name") of the actor. |
| 304 | "givenName": "A String", # The given name ("first name") of the actor. |
| 305 | }, |
| 306 | "url": "A String", # The link to the actor's Google profile. |
| 307 | "verification": { # Verification status of actor. |
| 308 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 309 | }, |
| 310 | }, |
| 311 | "address": "A String", # Street address where this activity occurred. |
| 312 | "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity. |
| 313 | "crosspostSource": "A String", # If this activity is a crosspost from another system, this property specifies the ID of the original activity. |
| 314 | "etag": "A String", # ETag of this response for caching purposes. |
| 315 | "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. |
| 316 | "id": "A String", # The ID of this activity. |
| 317 | "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity". |
| 318 | "location": { # The location where this activity occurred. |
| 319 | "address": { # The physical address of the place. |
| 320 | "formatted": "A String", # The formatted address for display. |
| 321 | }, |
| 322 | "displayName": "A String", # The display name of the place. |
| 323 | "id": "A String", # The id of the place. |
| 324 | "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place". |
| 325 | "position": { # The position of the place. |
| 326 | "latitude": 3.14, # The latitude of this position. |
| 327 | "longitude": 3.14, # The longitude of this position. |
| 328 | }, |
| 329 | }, |
| 330 | "object": { # The object of this activity. |
| 331 | "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor. |
| 332 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 333 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 334 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 335 | }, |
| 336 | }, |
| 337 | "displayName": "A String", # The original actor's name, which is suitable for display. |
| 338 | "id": "A String", # ID of the original actor. |
| 339 | "image": { # The image representation of the original actor. |
| 340 | "url": "A String", # A URL that points to a thumbnail photo of the original actor. |
| 341 | }, |
| 342 | "url": "A String", # A link to the original actor's Google profile. |
| 343 | "verification": { # Verification status of actor. |
| 344 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 345 | }, |
| 346 | }, |
| 347 | "attachments": [ # The media objects attached to this activity. |
| 348 | { |
| 349 | "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types. |
| 350 | "displayName": "A String", # The title of the attachment, such as a photo caption or an article title. |
| 351 | "embed": { # If the attachment is a video, the embeddable link. |
| 352 | "type": "A String", # Media type of the link. |
| 353 | "url": "A String", # URL of the link. |
| 354 | }, |
| 355 | "fullImage": { # The full image URL for photo attachments. |
| 356 | "height": 42, # The height, in pixels, of the linked resource. |
| 357 | "type": "A String", # Media type of the link. |
| 358 | "url": "A String", # URL of the image. |
| 359 | "width": 42, # The width, in pixels, of the linked resource. |
| 360 | }, |
| 361 | "id": "A String", # The ID of the attachment. |
| 362 | "image": { # The preview image for photos or videos. |
| 363 | "height": 42, # The height, in pixels, of the linked resource. |
| 364 | "type": "A String", # Media type of the link. |
| 365 | "url": "A String", # Image URL. |
| 366 | "width": 42, # The width, in pixels, of the linked resource. |
| 367 | }, |
| 368 | "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values: |
| 369 | # - "photo" - A photo. |
| 370 | # - "album" - A photo album. |
| 371 | # - "video" - A video. |
| 372 | # - "article" - An article, specified by a link. |
| 373 | "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 374 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 375 | "description": "A String", # Potential name of the thumbnail. |
| 376 | "image": { # Image resource. |
| 377 | "height": 42, # The height, in pixels, of the linked resource. |
| 378 | "type": "A String", # Media type of the link. |
| 379 | "url": "A String", # Image url. |
| 380 | "width": 42, # The width, in pixels, of the linked resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 381 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 382 | "url": "A String", # URL of the webpage containing the image. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 383 | }, |
| 384 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 385 | "url": "A String", # The link to the attachment, which should be of type text/html. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 386 | }, |
| 387 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 388 | "content": "A String", # The HTML-formatted content, which is suitable for display. |
| 389 | "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared. |
| 390 | "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values: |
| 391 | # - "note" - Textual content. |
| 392 | # - "activity" - A Google+ activity. |
| 393 | "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request. |
| 394 | "plusoners": { # People who +1'd this activity. |
| 395 | "selfLink": "A String", # The URL for the collection of people who +1'd this activity. |
| 396 | "totalItems": 42, # Total number of people who +1'd this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 397 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 398 | "replies": { # Comments in reply to this activity. |
| 399 | "selfLink": "A String", # The URL for the collection of comments in reply to this activity. |
| 400 | "totalItems": 42, # Total number of comments on this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 401 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 402 | "resharers": { # People who reshared this activity. |
| 403 | "selfLink": "A String", # The URL for the collection of resharers. |
| 404 | "totalItems": 42, # Total number of people who reshared this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 405 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 406 | "url": "A String", # The URL that points to the linked resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 407 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 408 | "placeId": "A String", # ID of the place where this activity occurred. |
| 409 | "placeName": "A String", # Name of the place where this activity occurred. |
| 410 | "provider": { # The service provider that initially published this activity. |
| 411 | "title": "A String", # Name of the service provider. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 412 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 413 | "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. |
| 414 | "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. |
| 415 | "title": "A String", # Title of this activity. |
| 416 | "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. |
| 417 | "url": "A String", # The link to this activity. |
| 418 | "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values: |
| 419 | # - "post" - Publish content to the stream. |
| 420 | # - "share" - Reshare an activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 421 | }, |
| 422 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 423 | "kind": "plus#activityFeed", # Identifies this resource as a collection of activities. Value: "plus#activityFeed". |
| 424 | "nextLink": "A String", # Link to the next page of activities. |
| 425 | "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. |
| 426 | "selfLink": "A String", # Link to this activity resource. |
| 427 | "title": "A String", # The title of this collection of activities, which is a truncated portion of the content. |
| 428 | "updated": "A String", # The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 429 | }</pre> |
| 430 | </div> |
| 431 | |
| 432 | <div class="method"> |
| 433 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 434 | <pre>Retrieves the next page of results. |
| 435 | |
| 436 | Args: |
| 437 | previous_request: The request for the previous page. (required) |
| 438 | previous_response: The response from the request for the previous page. (required) |
| 439 | |
| 440 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 441 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 442 | page. Returns None if there are no more items in the collection. |
| 443 | </pre> |
| 444 | </div> |
| 445 | |
| 446 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 447 | <code class="details" id="search">search(query, language=None, maxResults=None, orderBy=None, pageToken=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 448 | <pre>Shut down. See https://developers.google.com/+/api-shutdown for more details. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 449 | |
| 450 | Args: |
| 451 | query: string, Full-text search query string. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 452 | language: string, Specify the preferred language to search with. See search language codes for available values. |
| 453 | maxResults: integer, The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 454 | orderBy: string, Specifies how to order search results. |
| 455 | Allowed values |
| 456 | best - Sort activities by relevance to the user, most relevant first. |
| 457 | recent - Sort activities by published date, most recent first. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 458 | pageToken: string, The continuation token, which is 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. This token can be of any length. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 459 | |
| 460 | Returns: |
| 461 | An object of the form: |
| 462 | |
| 463 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 464 | "etag": "A String", # ETag of this response for caching purposes. |
| 465 | "id": "A String", # The ID of this collection of activities. Deprecated. |
| 466 | "items": [ # The activities in this page of results. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 467 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 468 | "access": { # Identifies who has access to see this activity. |
| 469 | "description": "A String", # Description of the access granted, suitable for display. |
| 470 | "items": [ # The list of access entries. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 471 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 472 | "displayName": "A String", # A descriptive name for this entry. Suitable for display. |
| 473 | "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set. |
| 474 | "type": "A String", # The type of entry describing to whom access is granted. Possible values are: |
| 475 | # - "person" - Access to an individual. |
| 476 | # - "circle" - Access to members of a circle. |
| 477 | # - "myCircles" - Access to members of all the person's circles. |
| 478 | # - "extendedCircles" - Access to members of all the person's circles, plus all of the people in their circles. |
| 479 | # - "domain" - Access to members of the person's Google Apps domain. |
| 480 | # - "public" - Access to anyone on the web. |
| 481 | }, |
| 482 | ], |
| 483 | "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl". |
| 484 | }, |
| 485 | "actor": { # The person who performed this activity. |
| 486 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 487 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 488 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 489 | }, |
| 490 | }, |
| 491 | "displayName": "A String", # The name of the actor, suitable for display. |
| 492 | "id": "A String", # The ID of the actor's Person resource. |
| 493 | "image": { # The image representation of the actor. |
| 494 | "url": "A String", # The URL of the actor's profile photo. To resize the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side. |
| 495 | }, |
| 496 | "name": { # An object representation of the individual components of name. |
| 497 | "familyName": "A String", # The family name ("last name") of the actor. |
| 498 | "givenName": "A String", # The given name ("first name") of the actor. |
| 499 | }, |
| 500 | "url": "A String", # The link to the actor's Google profile. |
| 501 | "verification": { # Verification status of actor. |
| 502 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 503 | }, |
| 504 | }, |
| 505 | "address": "A String", # Street address where this activity occurred. |
| 506 | "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity. |
| 507 | "crosspostSource": "A String", # If this activity is a crosspost from another system, this property specifies the ID of the original activity. |
| 508 | "etag": "A String", # ETag of this response for caching purposes. |
| 509 | "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. |
| 510 | "id": "A String", # The ID of this activity. |
| 511 | "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity". |
| 512 | "location": { # The location where this activity occurred. |
| 513 | "address": { # The physical address of the place. |
| 514 | "formatted": "A String", # The formatted address for display. |
| 515 | }, |
| 516 | "displayName": "A String", # The display name of the place. |
| 517 | "id": "A String", # The id of the place. |
| 518 | "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place". |
| 519 | "position": { # The position of the place. |
| 520 | "latitude": 3.14, # The latitude of this position. |
| 521 | "longitude": 3.14, # The longitude of this position. |
| 522 | }, |
| 523 | }, |
| 524 | "object": { # The object of this activity. |
| 525 | "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor. |
| 526 | "clientSpecificActorInfo": { # Actor info specific to particular clients. |
| 527 | "youtubeActorInfo": { # Actor info specific to YouTube clients. |
| 528 | "channelId": "A String", # ID of the YouTube channel owned by the Actor. |
| 529 | }, |
| 530 | }, |
| 531 | "displayName": "A String", # The original actor's name, which is suitable for display. |
| 532 | "id": "A String", # ID of the original actor. |
| 533 | "image": { # The image representation of the original actor. |
| 534 | "url": "A String", # A URL that points to a thumbnail photo of the original actor. |
| 535 | }, |
| 536 | "url": "A String", # A link to the original actor's Google profile. |
| 537 | "verification": { # Verification status of actor. |
| 538 | "adHocVerified": "A String", # Verification for one-time or manual processes. |
| 539 | }, |
| 540 | }, |
| 541 | "attachments": [ # The media objects attached to this activity. |
| 542 | { |
| 543 | "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types. |
| 544 | "displayName": "A String", # The title of the attachment, such as a photo caption or an article title. |
| 545 | "embed": { # If the attachment is a video, the embeddable link. |
| 546 | "type": "A String", # Media type of the link. |
| 547 | "url": "A String", # URL of the link. |
| 548 | }, |
| 549 | "fullImage": { # The full image URL for photo attachments. |
| 550 | "height": 42, # The height, in pixels, of the linked resource. |
| 551 | "type": "A String", # Media type of the link. |
| 552 | "url": "A String", # URL of the image. |
| 553 | "width": 42, # The width, in pixels, of the linked resource. |
| 554 | }, |
| 555 | "id": "A String", # The ID of the attachment. |
| 556 | "image": { # The preview image for photos or videos. |
| 557 | "height": 42, # The height, in pixels, of the linked resource. |
| 558 | "type": "A String", # Media type of the link. |
| 559 | "url": "A String", # Image URL. |
| 560 | "width": 42, # The width, in pixels, of the linked resource. |
| 561 | }, |
| 562 | "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values: |
| 563 | # - "photo" - A photo. |
| 564 | # - "album" - A photo album. |
| 565 | # - "video" - A video. |
| 566 | # - "article" - An article, specified by a link. |
| 567 | "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 568 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 569 | "description": "A String", # Potential name of the thumbnail. |
| 570 | "image": { # Image resource. |
| 571 | "height": 42, # The height, in pixels, of the linked resource. |
| 572 | "type": "A String", # Media type of the link. |
| 573 | "url": "A String", # Image url. |
| 574 | "width": 42, # The width, in pixels, of the linked resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 575 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 576 | "url": "A String", # URL of the webpage containing the image. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 577 | }, |
| 578 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 579 | "url": "A String", # The link to the attachment, which should be of type text/html. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 580 | }, |
| 581 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 582 | "content": "A String", # The HTML-formatted content, which is suitable for display. |
| 583 | "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared. |
| 584 | "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values: |
| 585 | # - "note" - Textual content. |
| 586 | # - "activity" - A Google+ activity. |
| 587 | "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request. |
| 588 | "plusoners": { # People who +1'd this activity. |
| 589 | "selfLink": "A String", # The URL for the collection of people who +1'd this activity. |
| 590 | "totalItems": 42, # Total number of people who +1'd this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 591 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 592 | "replies": { # Comments in reply to this activity. |
| 593 | "selfLink": "A String", # The URL for the collection of comments in reply to this activity. |
| 594 | "totalItems": 42, # Total number of comments on this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 595 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 596 | "resharers": { # People who reshared this activity. |
| 597 | "selfLink": "A String", # The URL for the collection of resharers. |
| 598 | "totalItems": 42, # Total number of people who reshared this activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 599 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 600 | "url": "A String", # The URL that points to the linked resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 601 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 602 | "placeId": "A String", # ID of the place where this activity occurred. |
| 603 | "placeName": "A String", # Name of the place where this activity occurred. |
| 604 | "provider": { # The service provider that initially published this activity. |
| 605 | "title": "A String", # Name of the service provider. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 606 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 607 | "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. |
| 608 | "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. |
| 609 | "title": "A String", # Title of this activity. |
| 610 | "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. |
| 611 | "url": "A String", # The link to this activity. |
| 612 | "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values: |
| 613 | # - "post" - Publish content to the stream. |
| 614 | # - "share" - Reshare an activity. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 615 | }, |
| 616 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 617 | "kind": "plus#activityFeed", # Identifies this resource as a collection of activities. Value: "plus#activityFeed". |
| 618 | "nextLink": "A String", # Link to the next page of activities. |
| 619 | "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. |
| 620 | "selfLink": "A String", # Link to this activity resource. |
| 621 | "title": "A String", # The title of this collection of activities, which is a truncated portion of the content. |
| 622 | "updated": "A String", # The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 623 | }</pre> |
| 624 | </div> |
| 625 | |
| 626 | <div class="method"> |
| 627 | <code class="details" id="search_next">search_next(previous_request, previous_response)</code> |
| 628 | <pre>Retrieves the next page of results. |
| 629 | |
| 630 | Args: |
| 631 | previous_request: The request for the previous page. (required) |
| 632 | previous_response: The response from the request for the previous page. (required) |
| 633 | |
| 634 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 635 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 636 | page. Returns None if there are no more items in the collection. |
| 637 | </pre> |
| 638 | </div> |
| 639 | |
| 640 | </body></html> |