Use Google Docs to create, edit and collaborate on online documents.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Create a new, empty document. To add content after creating the document, pass the document ID exported by this step to the Append Text action. See the docs
Appends an image to the end of a document. See the docs
Create a new document from plain text. See the docs
You can use the Google Docs API to build a wide variety of applications,
including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_docs: {
type: "app",
app: "google_docs",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_docs.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})