Build apps that scale with managed and intelligent SQL database in the cloud.
Executes a SQL query and returns the results. See the documentation
Adds a contact to a specific static list. See the documentation
Inserts a new row in a table. See the documentation
Create or update a batch of contacts by its ID. See the documentation
The Microsoft Azure SQL Database API allows you to manage and interact with your SQL databases hosted on Azure directly from Pipedream. It provides a serverless way to run SQL queries, manage tables, and handle database management tasks. You can create, read, update, and delete database records, execute stored procedures, and perform a variety of other SQL operations. Leveraging this API on Pipedream enables you to automate workflows, respond to database events in real-time, and integrate with countless other apps and services.
import sql from "mssql"
export default defineComponent({
props: {
azure_sql: {
type: "app",
app: "azure_sql",
}
},
async run({steps, $}) {
const { host, username, password, port, database, encrypt } = this.azure_sql.$auth
const config = {
user: username,
password,
server: host,
port,
database,
authentication: {
type: 'default'
},
options: {
encrypt
}
}
await sql.connect(config);
return await sql.query`SELECT GETDATE()`
},
})
The HubSpot API enables developers to integrate into HubSpots CRM, CMS, Conversations, and other features. It allows for automated management of contacts, companies, deals, and marketing campaigns, enabling custom workflows, data synchronization, and task automation. This streamlines operations and boosts customer engagement, with real-time updates for rapid response to market changes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hubspot: {
type: "app",
app: "hubspot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hubapi.com/integrations/v1/me`,
headers: {
Authorization: `Bearer ${this.hubspot.$auth.oauth_access_token}`,
},
})
},
})