PostsResource class

Constructors

PostsResource(ApiRequester client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String blogId, String postId, {bool? useTrash, String? $fields}) Future<void>
Deletes a post by blog id and post id.
get(String blogId, String postId, {bool? fetchBody, bool? fetchImages, int? maxComments, String? view, String? $fields}) Future<Post>
Gets a post by blog id and post id
getByPath(String blogId, String path, {int? maxComments, String? view, String? $fields}) Future<Post>
Gets a post by path.
insert(Post request, String blogId, {bool? fetchBody, bool? fetchImages, bool? isDraft, String? $fields}) Future<Post>
Inserts a post.
list(String blogId, {String? endDate, bool? fetchBodies, bool? fetchImages, String? labels, int? maxResults, String? orderBy, String? pageToken, String? sortOption, String? startDate, List<String>? status, String? view, String? $fields}) Future<PostList>
Lists posts.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(Post request, String blogId, String postId, {bool? fetchBody, bool? fetchImages, int? maxComments, bool? publish_1, bool? revert_1, String? $fields}) Future<Post>
Patches a post.
publish(String blogId, String postId, {String? publishDate, String? $fields}) Future<Post>
Publishes a post.
revert(String blogId, String postId, {String? $fields}) Future<Post>
Reverts a published or scheduled post to draft state.
Searches for posts matching given query terms in the specified blog.
toString() String
A string representation of this object.
inherited
update(Post request, String blogId, String postId, {bool? fetchBody, bool? fetchImages, int? maxComments, bool? publish_1, bool? revert_1, String? $fields}) Future<Post>
Updates a post by blog id and post id.

Operators

operator ==(Object other) bool
The equality operator.
inherited