with Signaturely and TinyPNG?
Triggers when a document is sent. See the documentation
Triggers when a new signature request has been sent. See the documentation
Creates a new signature request. See the documentation
Compress a WebP, JPEG, or PNG image using the TinyPNG API. See the documentation
Convert your images to your desired image type using TinyPNG. See the documentation
Create resized versions of your uploaded image. See the documentation
Signaturely API lets you automate document signing processes within your apps. You can harness this functionality on Pipedream to create, send, and manage legally-binding signatures on documents without manual intervention. Whether you're sending contracts, onboarding new employees, or needing signatures from clients, integrating Signaturely with Pipedream can streamline your workflow, save time, and reduce errors.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
signaturely: {
type: "app",
app: "signaturely",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.signaturely.com/api/v1/user/by-api`,
headers: {
"Authorization": `Api-Key ${this.signaturely.$auth.api_key}`,
},
})
},
})
The TinyPNG API lets you compress and optimize image files efficiently. With this API, you can shrink the size of PNG and JPEG files without a noticeable loss in quality, making it a crucial tool for improving website load times and saving bandwidth. On Pipedream, you can automate image optimization workflows, harnessing the power of TinyPNG to process batches of images, integrate with CMS platforms, trigger optimizations from various events, and more.
module.exports = defineComponent({
props: {
tinypng: {
type: "app",
app: "tinypng",
}
},
async run({steps, $}) {
const results = await require("@pipedream/platform").axios($, {
method: "post",
url: `https://api.tinify.com/shrink`,
auth: {
username: `api:${this.tinypng.$auth.api_key}`,
password: ``,
},
data: {
"source": {
"url": "https://tinypng.com/images/panda-happy.png"
}
},
})
const retVal = results.output
retVal.original_image_metadata = results.input
return retVal
},
})