Draftable

Document Comparison Software

Integrate the Draftable API with the Formatting API

Setup the Draftable API trigger to run a workflow which integrates with the Formatting API. Pipedream's integration platform allows you to integrate Draftable and Formatting remarkably fast. Free for developers.

[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string

 
Try it

Overview of Draftable

The Draftable API enables developers to convert documents and images into
highly-compressed, draft versions that can be easily shared and reviewed. This
can be useful for a number of different applications, such as:

  • Collaborative document editing, where users can quickly add comments and
    suggestions without slowing down the download or editing process
  • Document sharing, where users can quickly share large documents without
    overloading email servers or bandwidth limits
  • Image compression, where users can quickly reduce the size of images without
    losing quality or resolution

Connect Draftable

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    draftable: {
      type: "app",
      app: "draftable",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.draftable.com/v1/comparisons/[ACCOUNT_ID]/[IDENTIFIER]`,
      headers: {
        "Authorization": `Token ${this.draftable.$auth.token}`,
      },
    })
  },
})

Connect Formatting

1
2
3
4
5
6
export default defineComponent({
  async run({ steps, $ }) {
    const text = ' Hello world! ';
    return text.trim()
  },
})