UNPKG

@pipedream/contactout

Version:

Pipedream ContactOut Components

29 lines (26 loc) 794 B
import app from "../../contactout.app.mjs"; export default { key: "contactout-get-company-info", name: "Get Company Information", description: "Get company information from domain names. [See the documentation](https://api.contactout.com/#company-information-from-domains).", version: "0.0.1", type: "action", props: { app, domains: { type: "string[]", label: "Company Domains", description: "An array of domain names (max 30). Each domain should be in a valid format, for example: example.com", }, }, async run({ $ }) { const response = await this.app.getCompanyInfo({ $, data: { domains: this.domains, }, }); $.export("$summary", "Successfully retrieved company information"); return response; }, };