# Issuu

> Read published documents, drafts, stacks and readership statistics.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/issuu

## Actions

### Get a draft

Read an unpublished document and its settings.

**Inputs**

- Slug (`slug`, text, required): The unique identifier of the draft to retrieve. This should be a string that corresponds to the slug of a draft.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "state": "DRAFT"
  }
}
```

### Get a publication

Read the metadata for a published document.

**Inputs**

- Slug (`slug`, text, required): The unique identifier of the publication to retrieve. This should be a string that corresponds to the slug of a publication.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "state": "DRAFT"
  }
}
```

### Get a stack

Read the metadata for a publication stack.

**Inputs**

- Stack Id (`stack_id`, text, required): The unique identifier of the stack to retrieve.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "accessType": "PUBLIC",
    "description": "example",
    "id": "example",
    "title": "example"
  }
}
```

### Get publication embed code

Get the HTML to embed a publication in a website.

**Inputs**

- Slug (`slug`, text, required): The unique identifier of the publication to retrieve.
- Responsive (`responsive`, true/false): Determines if the embed code should be responsive.
- Width (`width`, text): The width of the embed code.
- Height (`height`, text): The height of the embed code.
- Hide Issuu Logo (`hide_issuu_logo`, true/false): Determines if the Issuu logo should be hidden.
- Hide Share Button (`hide_share_button`, true/false): Determines if the share button should be hidden.
- Show Other Publications (`show_other_publications`, true/false): Determines if other publications should be shown.
- Bg Color (`bg_color`, text): Determines the background color (hex) of the embed.
- Full Screen Share Bg Color (`full_screen_share_bg_color`, text): Determines the background color (hex) of the fullscreen share.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "embed": "example"
  }
}
```

### Get publication reader

Read the public reader link for a publication.

**Inputs**

- Slug (`slug`, text, required): The unique identifier of the publication to retrieve.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "url": "example"
  }
}
```

### Get readership statistics

Read available publication or account statistics.

**Inputs**

- Date Range (`date_range`, text): The date range to get the stats for - thisMonth: Get the stats for the current month - lastMonth: Get the stats for the last month - maxTime: Get the stats for all time. One of: `thisMonth`, `lastMonth`, `maxTime`.
- Slug (`slug`, text): The slug of the publication to get the stats for - If not provided, the stats for all publications will be returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "averageTimeSpent": 1,
    "clicks": 1,
    "downloads": 1,
    "impressions": 1,
    "reads": 1,
    "shares": 1
  }
}
```

### Get user profile

Read the Issuu user associated with the connection.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "isTeams": true,
    "ownerId": 1,
    "ownerName": "example",
    "profileImages": {
      "large": "example",
      "thumbnail": "example"
    },
    "userId": 1,
    "username": "example"
  }
}
```

### List account features

Read the features available to your Issuu account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "detectedLinks": true,
    "download": true,
    "fullscreenShare": true,
    "pageUploadLimit": {},
    "publishedDocumentLimit": {},
    "publishedDocumentLimitLeft": {},
    "sizeUploadLimitMb": {},
    "unlistedDocumentLimit": {},
    "unlistedDocumentLimitLeft": {}
  }
}
```

### List drafts

Browse and search your unpublished documents.

**Inputs**

- Size (`size`, number): Determines the number of documents to return per page.
- Page (`page`, number): Specifies the page number to return.
- Q (`q`, text): A regular expression that is applied to the titles and descriptions of the drafts and returns only the drafts that match the expression

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "links": {
      "next": {
        "href": "example"
      },
      "previous": {
        "href": "example"
      },
      "self": {
        "href": "example"
      }
    },
    "pageSize": 1,
    "results": [
      {
        "state": "DRAFT"
      }
    ]
  }
}
```

### List publications

Browse and search published documents.

**Inputs**

- Size (`size`, number): Determines the number of publications to return per page.
- Page (`page`, number): Specifies the page number to return.
- State (`state`, text): Filters the publications to return based on their state. One of: `ALL`, `PUBLISHED`, `SCHEDULED`, `UNLISTED`.
- Q (`q`, text): A regular expression that is applied to the titles and descriptions of the publications and returns only the publications that match the expression.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "links": {
      "next": {
        "href": "example"
      },
      "previous": {
        "href": "example"
      },
      "self": {
        "href": "example"
      }
    },
    "pageSize": 1,
    "results": [
      {
        "state": "DRAFT"
      }
    ]
  }
}
```

### List publications in a stack

Read the publications filed in a selected stack.

**Inputs**

- Stack Id (`stack_id`, text, required): The unique identifier of the stack to retrieve.
- Size (`size`, number): Number of items to return per page.
- Page (`page`, number): Specifies the page number to return.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "links": {
      "next": {
        "href": "example"
      },
      "previous": {
        "href": "example"
      },
      "self": {
        "href": "example"
      }
    },
    "pageSize": 1,
    "results": [
      "example"
    ]
  }
}
```

### List stacks

Read collections of publications in your account.

**Inputs**

- Size (`size`, number): Determines the number of stacks to return per page.
- Page (`page`, number): Specifies the page number to return.
- Show Unlisted (`show_unlisted`, true/false): Include unlisted stacks in the list of stacks.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "links": {
      "next": {
        "href": "example"
      },
      "previous": {
        "href": "example"
      },
      "self": {
        "href": "example"
      }
    },
    "pageSize": 1,
    "results": [
      {
        "accessType": "PUBLIC",
        "description": "example",
        "id": "example",
        "title": "example"
      }
    ]
  }
}
```
