with Click2Mail and Public Record?
Creates a new document in your account from an uploaded file or a URL. See the documentation for file. See the documentation for URL
The Click2Mail API enables automated mailing solutions, letting you integrate direct mail processes within your digital workflows. On Pipedream, you can harness this API to craft serverless workflows that interact with other apps and services. Create, manage, and send postal mail without leaving your digital ecosystem. Automate mail for marketing, invoicing, or any correspondence that requires a physical mail presence.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
click2mail2: {
type: "app",
app: "click2mail2",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.click2mail2.$auth.subdomain}.click2mail.com/molpro/credit`,
headers: {
"Accept": `application/json`,
},
auth: {
username: `${this.click2mail2.$auth.username}`,
password: `${this.click2mail2.$auth.password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
public_record: {
type: "app",
app: "public_record",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.propmix.io/pubrec/assessor/v1/GetPropertyDetails`,
headers: {
"Access-Token": `${this.public_record.$auth.api_key}`,
},
params: {
StreetAddress: `305 E 2nd St`,
City: `Lucas`,
State: `KS`,
PostalCode: `67648`,
OrderId: `5411013`,
},
})
},
})