Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Blogger

import { Blogger } from "https://googleapis.deno.dev/v1/blogger:v3.ts";

The Blogger API provides access to posts, comments and pages of a Blogger blog.

class Blogger {
constructor(client?: CredentialsClient, baseUrl?: string);
async blogsGet(blogId: string, opts?: BlogsGetOptions): Promise<Blog>;
async blogsGetByUrl(opts?: BlogsGetByUrlOptions): Promise<Blog>;
async blogsListByUser(userId: string, opts?: BlogsListByUserOptions): Promise<BlogList>;
async blogUserInfosGet(
blogId: string,
userId: string,
): Promise<BlogUserInfo>;
async commentsApprove(
blogId: string,
commentId: string,
postId: string,
): Promise<Comment>;
async commentsDelete(
blogId: string,
commentId: string,
postId: string,
): Promise<void>;
async commentsGet(
blogId: string,
commentId: string,
postId: string,
): Promise<Comment>;
async commentsList(
blogId: string,
postId: string,
): Promise<CommentList>;
async commentsListByBlog(blogId: string, opts?: CommentsListByBlogOptions): Promise<CommentList>;
async commentsMarkAsSpam(
blogId: string,
commentId: string,
postId: string,
): Promise<Comment>;
async commentsRemoveContent(
blogId: string,
commentId: string,
postId: string,
): Promise<Comment>;
async pagesDelete(
blogId: string,
pageId: string,
): Promise<void>;
async pagesGet(
blogId: string,
pageId: string,
): Promise<Page>;
async pagesInsert(
blogId: string,
req: Page,
): Promise<Page>;
async pagesList(blogId: string, opts?: PagesListOptions): Promise<PageList>;
async pagesPatch(
blogId: string,
pageId: string,
req: Page,
): Promise<Page>;
async pagesPublish(blogId: string, pageId: string): Promise<Page>;
async pagesRevert(blogId: string, pageId: string): Promise<Page>;
async pagesUpdate(
blogId: string,
pageId: string,
req: Page,
): Promise<Page>;
async pageViewsGet(blogId: string, opts?: PageViewsGetOptions): Promise<Pageviews>;
async postsDelete(
blogId: string,
postId: string,
): Promise<void>;
async postsGet(
blogId: string,
postId: string,
): Promise<Post>;
async postsGetByPath(blogId: string, opts?: PostsGetByPathOptions): Promise<Post>;
async postsInsert(
blogId: string,
req: Post,
): Promise<Post>;
async postsList(blogId: string, opts?: PostsListOptions): Promise<PostList>;
async postsPatch(
blogId: string,
postId: string,
req: Post,
): Promise<Post>;
async postsPublish(
blogId: string,
postId: string,
): Promise<Post>;
async postsRevert(blogId: string, postId: string): Promise<Post>;
async postsSearch(blogId: string, opts?: PostsSearchOptions): Promise<PostList>;
async postsUpdate(
blogId: string,
postId: string,
req: Post,
): Promise<Post>;
async postUserInfosGet(
blogId: string,
postId: string,
userId: string,
): Promise<PostUserInfo>;
async postUserInfosList(
blogId: string,
userId: string,
): Promise<PostUserInfosList>;
async usersGet(userId: string): Promise<User>;
}

§Constructors

§
new Blogger(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
blogsGet(blogId: string, opts?: BlogsGetOptions): Promise<Blog>
[src]

Gets a blog by id.

§
blogsGetByUrl(opts?: BlogsGetByUrlOptions): Promise<Blog>
[src]

Gets a blog by url.

§
blogsListByUser(userId: string, opts?: BlogsListByUserOptions): Promise<BlogList>
[src]

Lists blogs by user.

§
blogUserInfosGet(blogId: string, userId: string, opts?: BlogUserInfosGetOptions): Promise<BlogUserInfo>
[src]

Gets one blog and user info pair by blog id and user id.

§
commentsApprove(blogId: string, commentId: string, postId: string): Promise<Comment>
[src]

Marks a comment as not spam by blog id, post id and comment id.

§
commentsDelete(blogId: string, commentId: string, postId: string): Promise<void>
[src]

Deletes a comment by blog id, post id and comment id.

§
commentsGet(blogId: string, commentId: string, postId: string, opts?: CommentsGetOptions): Promise<Comment>
[src]

Gets a comment by id.

§
commentsList(blogId: string, postId: string, opts?: CommentsListOptions): Promise<CommentList>
[src]

Lists comments.

§
commentsListByBlog(blogId: string, opts?: CommentsListByBlogOptions): Promise<CommentList>
[src]

Lists comments by blog.

§
commentsMarkAsSpam(blogId: string, commentId: string, postId: string): Promise<Comment>
[src]

Marks a comment as spam by blog id, post id and comment id.

§
commentsRemoveContent(blogId: string, commentId: string, postId: string): Promise<Comment>
[src]

Removes the content of a comment by blog id, post id and comment id.

§
pagesDelete(blogId: string, pageId: string, opts?: PagesDeleteOptions): Promise<void>
[src]

Deletes a page by blog id and page id.

§
pagesGet(blogId: string, pageId: string, opts?: PagesGetOptions): Promise<Page>
[src]

Gets a page by blog id and page id.

§
pagesInsert(blogId: string, req: Page, opts?: PagesInsertOptions): Promise<Page>
[src]

Inserts a page.

§
pagesList(blogId: string, opts?: PagesListOptions): Promise<PageList>
[src]

Lists pages.

§
pagesPatch(blogId: string, pageId: string, req: Page, opts?: PagesPatchOptions): Promise<Page>
[src]

Patches a page.

§
pagesPublish(blogId: string, pageId: string): Promise<Page>
[src]

Publishes a page.

§
pagesRevert(blogId: string, pageId: string): Promise<Page>
[src]

Reverts a published or scheduled page to draft state.

§
pagesUpdate(blogId: string, pageId: string, req: Page, opts?: PagesUpdateOptions): Promise<Page>
[src]

Updates a page by blog id and page id.

§
pageViewsGet(blogId: string, opts?: PageViewsGetOptions): Promise<Pageviews>
[src]

Gets page views by blog id.

§
postsDelete(blogId: string, postId: string, opts?: PostsDeleteOptions): Promise<void>
[src]

Deletes a post by blog id and post id.

§
postsGet(blogId: string, postId: string, opts?: PostsGetOptions): Promise<Post>
[src]

Gets a post by blog id and post id

§
postsGetByPath(blogId: string, opts?: PostsGetByPathOptions): Promise<Post>
[src]

Gets a post by path.

§
postsInsert(blogId: string, req: Post, opts?: PostsInsertOptions): Promise<Post>
[src]

Inserts a post.

§
postsList(blogId: string, opts?: PostsListOptions): Promise<PostList>
[src]

Lists posts.

§
postsPatch(blogId: string, postId: string, req: Post, opts?: PostsPatchOptions): Promise<Post>
[src]

Patches a post.

§
postsPublish(blogId: string, postId: string, opts?: PostsPublishOptions): Promise<Post>
[src]

Publishes a post.

§
postsRevert(blogId: string, postId: string): Promise<Post>
[src]

Reverts a published or scheduled post to draft state.

§
postsSearch(blogId: string, opts?: PostsSearchOptions): Promise<PostList>
[src]

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

§
postsUpdate(blogId: string, postId: string, req: Post, opts?: PostsUpdateOptions): Promise<Post>
[src]

Updates a post by blog id and post id.

§
postUserInfosGet(blogId: string, postId: string, userId: string, opts?: PostUserInfosGetOptions): Promise<PostUserInfo>
[src]

Gets one post and user info pair, by post_id and user_id.

§
postUserInfosList(blogId: string, userId: string, opts?: PostUserInfosListOptions): Promise<PostUserInfosList>
[src]

Lists post and user info pairs.

§
usersGet(userId: string): Promise<User>
[src]

Gets one user by user_id.