UNPKG

@pipedream/lemlist

Version:

Pipedream Lemlist Components

28 lines (25 loc) 656 B
import lemlist from "../../lemlist.app.mjs"; export default { key: "lemlist-get-lead", name: "Get Lead", description: "This action retrieves all the information of a specific lead using its email. [See the docs here](https://developer.lemlist.com/#get-a-specific-lead-by-email)", version: "0.0.1", type: "action", props: { lemlist, email: { propDefinition: [ lemlist, "email", ], }, }, async run({ $ }) { const response = await this.lemlist.getLead({ $, email: this.email, }); $.export("$summary", `Successfully retrieved ${this.email} lead!`); return response; }, };