# Blogger

> Manage blog posts and pages, read comments, and watch for new content.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/blogger

## Actions

### Create a page

Create a draft or publish immediately.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Title (`title`, text, required): The title displayed to readers.
- Content (`content`, text): The content as HTML.
- Draft (`draft`, true/false): Save the content as a draft.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Create a post

Create a draft or publish immediately.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Title (`title`, text, required): The title displayed to readers.
- Content (`content`, text): The content as HTML.
- Labels (`labels`, list): Labels to give this post.
- Draft (`draft`, true/false): Save the content as a draft.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Delete a page

Remove a page from the selected blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Page (`page_id`, text, required): The page id.
- Use trash (`use_trash`, true/false): Move to trash when supported.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {}
}
```

### Delete a post

Remove a post from the selected blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Post (`post_id`, text, required): The post id.
- Use trash (`use_trash`, true/false): Move to trash when supported.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {}
}
```

### Find a blog by URL

Find the Blogger ID for a blog URL.

**Inputs**

- Url (`url`, text, required): The full address of the blog.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "description": "example",
    "id": "example",
    "name": "example",
    "published": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Get a blog

Read blog details, including its public URL.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "description": "example",
    "id": "example",
    "name": "example",
    "published": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Get a page

Read the content and details of a page.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Page (`page_id`, text, required): The page id.
- View (`view`, text): Choose the Blogspot role used to read the content. One of: `READER`, `AUTHOR`, `ADMIN`.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Get a post

Read the content and details of a post.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Post (`post_id`, text, required): The post id.
- View (`view`, text): Choose the Blogspot role used to read the content. One of: `READER`, `AUTHOR`, `ADMIN`.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Get my Blogger profile

Read the signed-in Blogger profile.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "url": "example"
  }
}
```

### List blog comments

List comments across posts in a blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Limit (`limit`, number): Maximum number of results to return. From 1 to 100.
- Cursor (`cursor`, text): The next-page token from the previous response.
- Start time (`start_time`, date and time): Return content published from this date and time.
- End time (`end_time`, date and time): Return content published through this date and time.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "author": {
          "displayName": "example"
        },
        "content": "example",
        "id": "example",
        "post": {
          "id": "example"
        },
        "published": "example",
        "status": "example",
        "updated": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List my blogs

List blogs accessible to the signed-in Google account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "published": "example",
        "updated": "example",
        "url": "example"
      }
    ]
  }
}
```

### List pages

List pages in the selected blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Limit (`limit`, number): Maximum number of results to return. From 1 to 100.
- Cursor (`cursor`, text): The next-page token from the previous response.
- View (`view`, text): Choose the Blogspot role used to read the content. One of: `READER`, `AUTHOR`, `ADMIN`.
- Status (`status`, text): Choose a publishing status. One of: `LIVE`, `DRAFT`, `SOFT_TRASHED` (Soft trashed). Default: `LIVE`.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "content": "example",
        "id": "example",
        "published": "example",
        "status": "example",
        "title": "example",
        "updated": "example",
        "url": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### List posts

List posts in the selected blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Limit (`limit`, number): Maximum number of results to return. From 1 to 100.
- Cursor (`cursor`, text): The next-page token from the previous response.
- View (`view`, text): Choose the Blogspot role used to read the content. One of: `READER`, `AUTHOR`, `ADMIN`.
- Status (`status`, text): Choose a publishing status. One of: `LIVE`, `DRAFT`, `SCHEDULED`, `SOFT_TRASHED` (Soft trashed). Default: `LIVE`.
- Start time (`start_time`, date and time): Return content published from this date and time.
- End time (`end_time`, date and time): Return content published through this date and time.
- Order by (`order_by`, text): The date used to order posts. One of: `PUBLISHED`, `UPDATED`.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "content": "example",
        "id": "example",
        "labels": [
          "example"
        ],
        "published": "example",
        "status": "example",
        "title": "example",
        "updated": "example",
        "url": "example"
      }
    ],
    "nextPageToken": "example"
  }
}
```

### Move a page to draft

Take a published page offline and keep its content.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Page (`page_id`, text, required): The page id.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Move a post to draft

Take a published post offline and keep its content.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Post (`post_id`, text, required): The post id.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Publish a page

Publish a draft page.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Page (`page_id`, text, required): The page id.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Publish a post

Publish a draft post.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Post (`post_id`, text, required): The post id.
- Publish at (`publish_at`, date and time): Choose when the post should go live.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Search posts

Find posts by keyword in a blog.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Query (`query`, text, required): The keywords to search for.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "items": [
      {
        "content": "example",
        "id": "example",
        "labels": [
          "example"
        ],
        "published": "example",
        "status": "example",
        "title": "example",
        "updated": "example",
        "url": "example"
      }
    ]
  }
}
```

### Update a page

Change the fields you supply on an existing page.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Page (`page_id`, text, required): The page id.
- Title (`title`, text): The title displayed to readers.
- Content (`content`, text): The content as HTML.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```

### Update a post

Change the fields you supply on an existing post.

**Inputs**

- Blog (`blog_id`, text, required): The blog id.
- Post (`post_id`, text, required): The post id.
- Title (`title`, text): The title displayed to readers.
- Content (`content`, text): The content as HTML.
- Labels (`labels`, list): Labels to give this post.

**Outputs**

- `data` (object): The response from Blogger.

**Example output**

```json
{
  "data": {
    "content": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "published": "example",
    "status": "example",
    "title": "example",
    "updated": "example",
    "url": "example"
  }
}
```
