with Zoho Recruit and TinyPNG?
Creates a new record or updates existing record if already present. 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
The Zoho Recruit API lets you access the Zoho Recruit ATS functionalities programmatically, enabling integrations with other services, automation of tasks, and enhancement of the recruitment process. With this API in Pipedream, you can trigger workflows based on events in Zoho Recruit, manipulate candidate data, post jobs, schedule interviews, and automate communication. The seamless connection between Zoho Recruit and other apps through Pipedream creates a powerful ecosystem to streamline your hiring workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_recruit: {
type: "app",
app: "zoho_recruit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://recruit.${this.zoho_recruit.$auth.base_api_uri}/recruit/v2/settings/roles`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_recruit.$auth.oauth_access_token}`,
},
})
},
})
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
},
})