with Google and Conversion Tools?
The Google API on Pipedream is a powerhouse for automating interactions with various Google services, like Google Sheets, Gmail, Calendar, and Drive. With it, you can read and write data, manage emails, calendar events, and files, and integrate with other APIs for enhanced workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google: {
type: "app",
app: "google",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google.$auth.oauth_access_token}`,
},
})
},
})
The Conversion Tools API allows for seamless file conversions between various formats, including document, image, audio, and video transformation. In Pipedream, you can use the API to automate such conversions within workflows, and handle file manipulation tasks efficiently, integrating them with hundreds of other services to create a smooth data processing pipeline.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
conversion_tools: {
type: "app",
app: "conversion_tools",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.conversiontools.io/v1/tasks`,
headers: {
Authorization: `Bearer ${this.conversion_tools.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})