Class PostsResource
The "posts" collection of methods.
Inherited Members
Namespace: Google.Apis.Blogger.v3
Assembly: Google.Apis.Blogger.v3.dll
Syntax
public class PostsResource
Constructors
PostsResource(IClientService)
Constructs a new resource.
Declaration
public PostsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes a post by blog id and post id.
Declaration
public virtual PostsResource.DeleteRequest Delete(string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.DeleteRequest |
Get(string, string)
Gets a post by blog id and post id
Declaration
public virtual PostsResource.GetRequest Get(string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.GetRequest |
GetByPath(string, string)
Gets a post by path.
Declaration
public virtual PostsResource.GetByPathRequest GetByPath(string blogId, string path)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | path |
|
Returns
Type | Description |
---|---|
PostsResource.GetByPathRequest |
Insert(Post, string)
Inserts a post.
Declaration
public virtual PostsResource.InsertRequest Insert(Post body, string blogId)
Parameters
Type | Name | Description |
---|---|---|
Post | body | The body of the request. |
string | blogId |
|
Returns
Type | Description |
---|---|
PostsResource.InsertRequest |
List(string)
Lists posts.
Declaration
public virtual PostsResource.ListRequest List(string blogId)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
Returns
Type | Description |
---|---|
PostsResource.ListRequest |
Patch(Post, string, string)
Patches a post.
Declaration
public virtual PostsResource.PatchRequest Patch(Post body, string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
Post | body | The body of the request. |
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.PatchRequest |
Publish(string, string)
Publishes a post.
Declaration
public virtual PostsResource.PublishRequest Publish(string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.PublishRequest |
Revert(string, string)
Reverts a published or scheduled post to draft state.
Declaration
public virtual PostsResource.RevertRequest Revert(string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.RevertRequest |
Search(string, string)
Searches for posts matching given query terms in the specified blog.
Declaration
public virtual PostsResource.SearchRequest Search(string blogId, string q)
Parameters
Type | Name | Description |
---|---|---|
string | blogId |
|
string | q |
|
Returns
Type | Description |
---|---|
PostsResource.SearchRequest |
Update(Post, string, string)
Updates a post by blog id and post id.
Declaration
public virtual PostsResource.UpdateRequest Update(Post body, string blogId, string postId)
Parameters
Type | Name | Description |
---|---|---|
Post | body | The body of the request. |
string | blogId |
|
string | postId |
|
Returns
Type | Description |
---|---|
PostsResource.UpdateRequest |