import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_books: {
type: "app",
app: "google_books",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/books/v1/volumes`,
params: {
"q": `The MCP Protocol`,
key: `${this.google_books.$auth.api_key}`,
},
})
},
})
Google Books uses API keys for authentication. When you connect your Google Books account, Pipedream securely stores the keys so you can easily authenticate to Google Books APIs in both code and no-code steps.