class Posts extends Resource (View source)

The "posts" collection of methods.

Typical usage is:

 $bloggerService = new Google\Service\Blogger(...);
 $posts = $bloggerService->posts;

Methods

delete(string $blogId, string $postId, array $optParams = [])

Deletes a post by blog id and post id. (posts.delete)

get(string $blogId, string $postId, array $optParams = [])

Gets a post by blog id and post id (posts.get)

getByPath(string $blogId, string $path, array $optParams = [])

Gets a post by path. (posts.getByPath)

insert(string $blogId, Post $postBody, array $optParams = [])

Inserts a post. (posts.insert)

listPosts(string $blogId, array $optParams = [])

Lists posts. (posts.listPosts)

patch(string $blogId, string $postId, Post $postBody, array $optParams = [])

Patches a post. (posts.patch)

publish(string $blogId, string $postId, array $optParams = [])

Publishes a post. (posts.publish)

revert(string $blogId, string $postId, array $optParams = [])

Reverts a published or scheduled post to draft state. (posts.revert)

search(string $blogId, string $q, array $optParams = [])

Searches for posts matching given query terms in the specified blog.

update(string $blogId, string $postId, Post $postBody, array $optParams = [])

Updates a post by blog id and post id. (posts.update)

Details

delete(string $blogId, string $postId, array $optParams = [])

Deletes a post by blog id and post id. (posts.delete)

Parameters

string $blogId
string $postId
array $optParams

Optional parameters.

Exceptions

Exception

Post get(string $blogId, string $postId, array $optParams = [])

Gets a post by blog id and post id (posts.get)

Parameters

string $blogId
string $postId
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

Post getByPath(string $blogId, string $path, array $optParams = [])

Gets a post by path. (posts.getByPath)

Parameters

string $blogId
string $path
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

Post insert(string $blogId, Post $postBody, array $optParams = [])

Inserts a post. (posts.insert)

Parameters

string $blogId
Post $postBody
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

PostList listPosts(string $blogId, array $optParams = [])

Lists posts. (posts.listPosts)

Parameters

string $blogId
array $optParams

Optional parameters.

Return Value

PostList

Exceptions

Exception

Post patch(string $blogId, string $postId, Post $postBody, array $optParams = [])

Patches a post. (posts.patch)

Parameters

string $blogId
string $postId
Post $postBody
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

Post publish(string $blogId, string $postId, array $optParams = [])

Publishes a post. (posts.publish)

Parameters

string $blogId
string $postId
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

Post revert(string $blogId, string $postId, array $optParams = [])

Reverts a published or scheduled post to draft state. (posts.revert)

Parameters

string $blogId
string $postId
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception

Searches for posts matching given query terms in the specified blog.

(posts.search)

Parameters

string $blogId
string $q
array $optParams

Optional parameters.

Return Value

PostList

Exceptions

Exception

Post update(string $blogId, string $postId, Post $postBody, array $optParams = [])

Updates a post by blog id and post id. (posts.update)

Parameters

string $blogId
string $postId
Post $postBody
array $optParams

Optional parameters.

Return Value

Post

Exceptions

Exception