Use Google Docs to create, edit and collaborate on online documents.
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go 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}`,
},
})
},
})
package main
import (
"fmt"
pd "github.com/PipedreamHQ/pipedream-go"
)
func main() {
// Access previous step data using pd.Steps
fmt.Println(pd.Steps)
// Export data using pd.Export
data := make(map[string]interface{})
data["name"] = "Luke"
pd.Export("data", data)
}