Skip to content

Commit b34619e

Browse files
committed
Updated Blogger.php
1 parent e5d1613 commit b34619e

File tree

1 file changed

+85
-19
lines changed

1 file changed

+85
-19
lines changed

src/Google/Service/Blogger.php

Lines changed: 85 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ public function __construct(Google_Client $client)
138138
'location' => 'query',
139139
'type' => 'boolean',
140140
),
141+
'status' => array(
142+
'location' => 'query',
143+
'type' => 'string',
144+
'repeated' => true,
145+
),
141146
'role' => array(
142147
'location' => 'query',
143148
'type' => 'string',
@@ -414,6 +419,10 @@ public function __construct(Google_Client $client)
414419
'type' => 'string',
415420
'required' => true,
416421
),
422+
'isDraft' => array(
423+
'location' => 'query',
424+
'type' => 'boolean',
425+
),
417426
),
418427
),'list' => array(
419428
'path' => 'blogs/{blogId}/pages',
@@ -452,6 +461,14 @@ public function __construct(Google_Client $client)
452461
'type' => 'string',
453462
'required' => true,
454463
),
464+
'revert' => array(
465+
'location' => 'query',
466+
'type' => 'boolean',
467+
),
468+
'publish' => array(
469+
'location' => 'query',
470+
'type' => 'boolean',
471+
),
455472
),
456473
),'update' => array(
457474
'path' => 'blogs/{blogId}/pages/{pageId}',
@@ -467,6 +484,14 @@ public function __construct(Google_Client $client)
467484
'type' => 'string',
468485
'required' => true,
469486
),
487+
'revert' => array(
488+
'location' => 'query',
489+
'type' => 'boolean',
490+
),
491+
'publish' => array(
492+
'location' => 'query',
493+
'type' => 'boolean',
494+
),
470495
),
471496
),
472497
)
@@ -906,7 +931,7 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
906931
{
907932

908933
/**
909-
* Gets one blog by id. (blogs.get)
934+
* Gets one blog by ID. (blogs.get)
910935
*
911936
* @param string $blogId
912937
* The ID of the blog to get.
@@ -915,7 +940,7 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
915940
* @opt_param string maxPosts
916941
* Maximum number of posts to pull back with the blog.
917942
* @opt_param string view
918-
* Access level with which to view the blogs. Note that some fields require elevated access.
943+
* Access level with which to view the blog. Note that some fields require elevated access.
919944
* @return Google_Service_Blogger_Blog
920945
*/
921946
public function get($blogId, $optParams = array())
@@ -932,7 +957,7 @@ public function get($blogId, $optParams = array())
932957
* @param array $optParams Optional parameters.
933958
*
934959
* @opt_param string view
935-
* Access level with which to view the blogs. Note that some fields require elevated access.
960+
* Access level with which to view the blog. Note that some fields require elevated access.
936961
* @return Google_Service_Blogger_Blog
937962
*/
938963
public function getByUrl($url, $optParams = array())
@@ -951,6 +976,9 @@ public function getByUrl($url, $optParams = array())
951976
*
952977
* @opt_param bool fetchUserInfo
953978
* Whether the response is a list of blogs with per-user information instead of just blogs.
979+
* @opt_param string status
980+
* Blog statuses to include in the result (default: Live blogs only). Note that ADMIN access is
981+
* required to view deleted blogs.
954982
* @opt_param string role
955983
* User access types for blogs to include in the results, e.g. AUTHOR will return blogs where the
956984
* user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles.
@@ -981,7 +1009,7 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
9811009
* Marks a comment as not spam. (comments.approve)
9821010
*
9831011
* @param string $blogId
984-
* The Id of the Blog.
1012+
* The ID of the Blog.
9851013
* @param string $postId
9861014
* The ID of the Post.
9871015
* @param string $commentId
@@ -996,10 +1024,10 @@ public function approve($blogId, $postId, $commentId, $optParams = array())
9961024
return $this->call('approve', array($params), "Google_Service_Blogger_Comment");
9971025
}
9981026
/**
999-
* Delete a comment by id. (comments.delete)
1027+
* Delete a comment by ID. (comments.delete)
10001028
*
10011029
* @param string $blogId
1002-
* The Id of the Blog.
1030+
* The ID of the Blog.
10031031
* @param string $postId
10041032
* The ID of the Post.
10051033
* @param string $commentId
@@ -1013,7 +1041,7 @@ public function delete($blogId, $postId, $commentId, $optParams = array())
10131041
return $this->call('delete', array($params));
10141042
}
10151043
/**
1016-
* Gets one comment by id. (comments.get)
1044+
* Gets one comment by ID. (comments.get)
10171045
*
10181046
* @param string $blogId
10191047
* ID of the blog to containing the comment.
@@ -1097,7 +1125,7 @@ public function listByBlog($blogId, $optParams = array())
10971125
* Marks a comment as spam. (comments.markAsSpam)
10981126
*
10991127
* @param string $blogId
1100-
* The Id of the Blog.
1128+
* The ID of the Blog.
11011129
* @param string $postId
11021130
* The ID of the Post.
11031131
* @param string $commentId
@@ -1115,7 +1143,7 @@ public function markAsSpam($blogId, $postId, $commentId, $optParams = array())
11151143
* Removes the content of a comment. (comments.removeContent)
11161144
*
11171145
* @param string $blogId
1118-
* The Id of the Blog.
1146+
* The ID of the Blog.
11191147
* @param string $postId
11201148
* The ID of the Post.
11211149
* @param string $commentId
@@ -1173,10 +1201,10 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
11731201
{
11741202

11751203
/**
1176-
* Delete a page by id. (pages.delete)
1204+
* Delete a page by ID. (pages.delete)
11771205
*
11781206
* @param string $blogId
1179-
* The Id of the Blog.
1207+
* The ID of the Blog.
11801208
* @param string $pageId
11811209
* The ID of the Page.
11821210
* @param array $optParams Optional parameters.
@@ -1188,7 +1216,7 @@ public function delete($blogId, $pageId, $optParams = array())
11881216
return $this->call('delete', array($params));
11891217
}
11901218
/**
1191-
* Gets one blog page by id. (pages.get)
1219+
* Gets one blog page by ID. (pages.get)
11921220
*
11931221
* @param string $blogId
11941222
* ID of the blog containing the page.
@@ -1213,6 +1241,9 @@ public function get($blogId, $pageId, $optParams = array())
12131241
* ID of the blog to add the page to.
12141242
* @param Google_Page $postBody
12151243
* @param array $optParams Optional parameters.
1244+
*
1245+
* @opt_param bool isDraft
1246+
* Whether to create the page as a draft (default: false).
12161247
* @return Google_Service_Blogger_Page
12171248
*/
12181249
public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array())
@@ -1253,6 +1284,11 @@ public function listPages($blogId, $optParams = array())
12531284
* The ID of the Page.
12541285
* @param Google_Page $postBody
12551286
* @param array $optParams Optional parameters.
1287+
*
1288+
* @opt_param bool revert
1289+
* Whether a revert action should be performed when the page is updated (default: false).
1290+
* @opt_param bool publish
1291+
* Whether a publish action should be performed when the page is updated (default: false).
12561292
* @return Google_Service_Blogger_Page
12571293
*/
12581294
public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
@@ -1270,6 +1306,11 @@ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $
12701306
* The ID of the Page.
12711307
* @param Google_Page $postBody
12721308
* @param array $optParams Optional parameters.
1309+
*
1310+
* @opt_param bool revert
1311+
* Whether a revert action should be performed when the page is updated (default: false).
1312+
* @opt_param bool publish
1313+
* Whether a publish action should be performed when the page is updated (default: false).
12731314
* @return Google_Service_Blogger_Page
12741315
*/
12751316
public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
@@ -1292,7 +1333,7 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou
12921333
{
12931334

12941335
/**
1295-
* Gets one post and user info pair, by post id and user id. The post user info
1336+
* Gets one post and user info pair, by post ID and user ID. The post user info
12961337
* contains per-user information about the post, such as access rights, specific
12971338
* to the user. (postUserInfos.get)
12981339
*
@@ -1368,10 +1409,10 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
13681409
{
13691410

13701411
/**
1371-
* Delete a post by id. (posts.delete)
1412+
* Delete a post by ID. (posts.delete)
13721413
*
13731414
* @param string $blogId
1374-
* The Id of the Blog.
1415+
* The ID of the Blog.
13751416
* @param string $postId
13761417
* The ID of the Post.
13771418
* @param array $optParams Optional parameters.
@@ -1383,7 +1424,7 @@ public function delete($blogId, $postId, $optParams = array())
13831424
return $this->call('delete', array($params));
13841425
}
13851426
/**
1386-
* Get a post by id. (posts.get)
1427+
* Get a post by ID. (posts.get)
13871428
*
13881429
* @param string $blogId
13891430
* ID of the blog to fetch the post from.
@@ -1519,7 +1560,8 @@ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $
15191560
return $this->call('patch', array($params), "Google_Service_Blogger_Post");
15201561
}
15211562
/**
1522-
* Publish a draft post. (posts.publish)
1563+
* Publishes a draft post, optionally at the specific time of the given
1564+
* publishDate parameter. (posts.publish)
15231565
*
15241566
* @param string $blogId
15251567
* The ID of the Blog.
@@ -1528,7 +1570,9 @@ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $
15281570
* @param array $optParams Optional parameters.
15291571
*
15301572
* @opt_param string publishDate
1531-
* The date and time to schedule the publishing of the Blog.
1573+
* Optional date and time to schedule the publishing of the Blog. If no publishDate parameter is
1574+
* given, the post is either published at the a previously saved schedule date (if present), or the
1575+
* current time. If a future date is given, the post will be scheduled to be published.
15321576
* @return Google_Service_Blogger_Post
15331577
*/
15341578
public function publish($blogId, $postId, $optParams = array())
@@ -1617,7 +1661,7 @@ class Google_Service_Blogger_Users_Resource extends Google_Service_Resource
16171661
{
16181662

16191663
/**
1620-
* Gets one user by id. (users.get)
1664+
* Gets one user by ID. (users.get)
16211665
*
16221666
* @param string $userId
16231667
* The ID of the user to get.
@@ -1650,6 +1694,7 @@ class Google_Service_Blogger_Blog extends Google_Model
16501694
protected $postsDataType = '';
16511695
public $published;
16521696
public $selfLink;
1697+
public $status;
16531698
public $updated;
16541699
public $url;
16551700

@@ -1753,6 +1798,16 @@ public function getSelfLink()
17531798
return $this->selfLink;
17541799
}
17551800

1801+
public function setStatus($status)
1802+
{
1803+
$this->status = $status;
1804+
}
1805+
1806+
public function getStatus()
1807+
{
1808+
return $this->status;
1809+
}
1810+
17561811
public function setUpdated($updated)
17571812
{
17581813
$this->updated = $updated;
@@ -2623,6 +2678,7 @@ class Google_Service_Blogger_Post extends Google_Collection
26232678
protected $locationType = 'Google_Service_Blogger_PostLocation';
26242679
protected $locationDataType = '';
26252680
public $published;
2681+
public $readerComments;
26262682
protected $repliesType = 'Google_Service_Blogger_PostReplies';
26272683
protected $repliesDataType = '';
26282684
public $selfLink;
@@ -2732,6 +2788,16 @@ public function getPublished()
27322788
return $this->published;
27332789
}
27342790

2791+
public function setReaderComments($readerComments)
2792+
{
2793+
$this->readerComments = $readerComments;
2794+
}
2795+
2796+
public function getReaderComments()
2797+
{
2798+
return $this->readerComments;
2799+
}
2800+
27352801
public function setReplies(Google_Service_Blogger_PostReplies $replies)
27362802
{
27372803
$this->replies = $replies;

0 commit comments

Comments
 (0)