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="plusDomains_v1.html">Google+ Domains API</a> . <a href="plusDomains_v1.comments.html">comments</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="#get">get(commentId)</a></code></p> 79 <p class="firstline">Get a comment.</p> 80 <p class="toc_element"> 81 <code><a href="#insert">insert(activityId, body)</a></code></p> 82 <p class="firstline">Create a new comment in reply to an activity.</p> 83 <p class="toc_element"> 84 <code><a href="#list">list(activityId, pageToken=None, maxResults=None, sortOrder=None)</a></code></p> 85 <p class="firstline">List all of the comments for an activity.</p> 86 <p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88 <p class="firstline">Retrieves the next page of results.</p> 89 <h3>Method Details</h3> 90 <div class="method"> 91 <code class="details" id="get">get(commentId)</code> 92 <pre>Get a comment. 93 94 Args: 95 commentId: string, The ID of the comment to get. (required) 96 97 Returns: 98 An object of the form: 99 100 { 101 "inReplyTo": [ # The activity this comment replied to. 102 { 103 "url": "A String", # The URL of the activity. 104 "id": "A String", # The ID of the activity. 105 }, 106 ], 107 "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment". 108 "plusoners": { # People who +1'd this comment. 109 "totalItems": 42, # Total number of people who +1'd this comment. 110 }, 111 "object": { # The object of this comment. 112 "content": "A String", # The HTML-formatted content, suitable for display. 113 "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request. 114 "objectType": "comment", # The object type of this comment. Possible values are: 115 # - "comment" - A comment in reply to an activity. 116 }, 117 "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp. 118 "actor": { # The person who posted this comment. 119 "displayName": "A String", # The name of this actor, suitable for display. 120 "url": "A String", # A link to the Person resource for this actor. 121 "image": { # The image representation of this actor. 122 "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. 123 }, 124 "clientSpecificActorInfo": { # Actor info specific to particular clients. 125 "youtubeActorInfo": { # Actor info specific to YouTube clients. 126 "channelId": "A String", # ID of the YouTube channel owned by the Actor. 127 }, 128 }, 129 "verification": { # Verification status of actor. 130 "adHocVerified": "A String", # Verification for one-time or manual processes. 131 }, 132 "id": "A String", # The ID of the actor. 133 }, 134 "verb": "post", # This comment's verb, indicating what action was performed. Possible values are: 135 # - "post" - Publish content to the stream. 136 "etag": "A String", # ETag of this response for caching purposes. 137 "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp. 138 "id": "A String", # The ID of this comment. 139 "selfLink": "A String", # Link to this comment resource. 140 }</pre> 141 </div> 142 143 <div class="method"> 144 <code class="details" id="insert">insert(activityId, body)</code> 145 <pre>Create a new comment in reply to an activity. 146 147 Args: 148 activityId: string, The ID of the activity to reply to. (required) 149 body: object, The request body. (required) 150 The object takes the form of: 151 152 { 153 "inReplyTo": [ # The activity this comment replied to. 154 { 155 "url": "A String", # The URL of the activity. 156 "id": "A String", # The ID of the activity. 157 }, 158 ], 159 "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment". 160 "plusoners": { # People who +1'd this comment. 161 "totalItems": 42, # Total number of people who +1'd this comment. 162 }, 163 "object": { # The object of this comment. 164 "content": "A String", # The HTML-formatted content, suitable for display. 165 "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request. 166 "objectType": "comment", # The object type of this comment. Possible values are: 167 # - "comment" - A comment in reply to an activity. 168 }, 169 "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp. 170 "actor": { # The person who posted this comment. 171 "displayName": "A String", # The name of this actor, suitable for display. 172 "url": "A String", # A link to the Person resource for this actor. 173 "image": { # The image representation of this actor. 174 "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. 175 }, 176 "clientSpecificActorInfo": { # Actor info specific to particular clients. 177 "youtubeActorInfo": { # Actor info specific to YouTube clients. 178 "channelId": "A String", # ID of the YouTube channel owned by the Actor. 179 }, 180 }, 181 "verification": { # Verification status of actor. 182 "adHocVerified": "A String", # Verification for one-time or manual processes. 183 }, 184 "id": "A String", # The ID of the actor. 185 }, 186 "verb": "post", # This comment's verb, indicating what action was performed. Possible values are: 187 # - "post" - Publish content to the stream. 188 "etag": "A String", # ETag of this response for caching purposes. 189 "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp. 190 "id": "A String", # The ID of this comment. 191 "selfLink": "A String", # Link to this comment resource. 192 } 193 194 195 Returns: 196 An object of the form: 197 198 { 199 "inReplyTo": [ # The activity this comment replied to. 200 { 201 "url": "A String", # The URL of the activity. 202 "id": "A String", # The ID of the activity. 203 }, 204 ], 205 "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment". 206 "plusoners": { # People who +1'd this comment. 207 "totalItems": 42, # Total number of people who +1'd this comment. 208 }, 209 "object": { # The object of this comment. 210 "content": "A String", # The HTML-formatted content, suitable for display. 211 "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request. 212 "objectType": "comment", # The object type of this comment. Possible values are: 213 # - "comment" - A comment in reply to an activity. 214 }, 215 "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp. 216 "actor": { # The person who posted this comment. 217 "displayName": "A String", # The name of this actor, suitable for display. 218 "url": "A String", # A link to the Person resource for this actor. 219 "image": { # The image representation of this actor. 220 "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. 221 }, 222 "clientSpecificActorInfo": { # Actor info specific to particular clients. 223 "youtubeActorInfo": { # Actor info specific to YouTube clients. 224 "channelId": "A String", # ID of the YouTube channel owned by the Actor. 225 }, 226 }, 227 "verification": { # Verification status of actor. 228 "adHocVerified": "A String", # Verification for one-time or manual processes. 229 }, 230 "id": "A String", # The ID of the actor. 231 }, 232 "verb": "post", # This comment's verb, indicating what action was performed. Possible values are: 233 # - "post" - Publish content to the stream. 234 "etag": "A String", # ETag of this response for caching purposes. 235 "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp. 236 "id": "A String", # The ID of this comment. 237 "selfLink": "A String", # Link to this comment resource. 238 }</pre> 239 </div> 240 241 <div class="method"> 242 <code class="details" id="list">list(activityId, pageToken=None, maxResults=None, sortOrder=None)</code> 243 <pre>List all of the comments for an activity. 244 245 Args: 246 activityId: string, The ID of the activity to get comments for. (required) 247 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. 248 maxResults: integer, The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults. 249 sortOrder: string, The order in which to sort the list of comments. 250 Allowed values 251 ascending - Sort oldest comments first. 252 descending - Sort newest comments first. 253 254 Returns: 255 An object of the form: 256 257 { 258 "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. 259 "kind": "plus#commentFeed", # Identifies this resource as a collection of comments. Value: "plus#commentFeed". 260 "title": "A String", # The title of this collection of comments. 261 "items": [ # The comments in this page of results. 262 { 263 "inReplyTo": [ # The activity this comment replied to. 264 { 265 "url": "A String", # The URL of the activity. 266 "id": "A String", # The ID of the activity. 267 }, 268 ], 269 "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment". 270 "plusoners": { # People who +1'd this comment. 271 "totalItems": 42, # Total number of people who +1'd this comment. 272 }, 273 "object": { # The object of this comment. 274 "content": "A String", # The HTML-formatted content, suitable for display. 275 "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request. 276 "objectType": "comment", # The object type of this comment. Possible values are: 277 # - "comment" - A comment in reply to an activity. 278 }, 279 "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp. 280 "actor": { # The person who posted this comment. 281 "displayName": "A String", # The name of this actor, suitable for display. 282 "url": "A String", # A link to the Person resource for this actor. 283 "image": { # The image representation of this actor. 284 "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. 285 }, 286 "clientSpecificActorInfo": { # Actor info specific to particular clients. 287 "youtubeActorInfo": { # Actor info specific to YouTube clients. 288 "channelId": "A String", # ID of the YouTube channel owned by the Actor. 289 }, 290 }, 291 "verification": { # Verification status of actor. 292 "adHocVerified": "A String", # Verification for one-time or manual processes. 293 }, 294 "id": "A String", # The ID of the actor. 295 }, 296 "verb": "post", # This comment's verb, indicating what action was performed. Possible values are: 297 # - "post" - Publish content to the stream. 298 "etag": "A String", # ETag of this response for caching purposes. 299 "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp. 300 "id": "A String", # The ID of this comment. 301 "selfLink": "A String", # Link to this comment resource. 302 }, 303 ], 304 "updated": "A String", # The time at which this collection of comments was last updated. Formatted as an RFC 3339 timestamp. 305 "nextLink": "A String", # Link to the next page of activities. 306 "etag": "A String", # ETag of this response for caching purposes. 307 "id": "A String", # The ID of this collection of comments. 308 }</pre> 309 </div> 310 311 <div class="method"> 312 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 313 <pre>Retrieves the next page of results. 314 315 Args: 316 previous_request: The request for the previous page. (required) 317 previous_response: The response from the request for the previous page. (required) 318 319 Returns: 320 A request object that you can call 'execute()' on to request the next 321 page. Returns None if there are no more items in the collection. 322 </pre> 323 </div> 324 325 </body></html>