with Reverse Contact and Verifone?
Returns enriched profile information with the given email. See docs here
The Reverse Contact API unlocks the potential to enrich and reverse-lookup contact details. By feeding it an email, phone number, or social media handle, you can unveil a wealth of associated information, such as other contact methods, social profiles, and more. In Pipedream, you can leverage this API to automate data enrichment for leads, verify user data, or integrate enriched contact data into CRMs or marketing platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
reversecontact: {
type: "app",
app: "reversecontact",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.reversecontact.com/enrichment`,
params: {
apikey: `${this.reversecontact.$auth.api_key}`,
mail: `{your_target_email}`,
},
})
},
})
import { axios } from "@pipedream/platform";
import dayjs from "dayjs";
import crypto from "crypto";
export default defineComponent({
props: {
verifone: {
type: "app",
app: "verifone",
}
},
async run({steps, $}) {
let requestDateTime = new Date();
requestDateTime = dayjs(requestDateTime).format("YYYY-MM-DD hh:mm:ss");
const algo = "sha256";
let hash = this.verifone.$auth.vendor_code.length
+ this.verifone.$auth.vendor_code
+ requestDateTime.toString().length
+ requestDateTime;
hash = crypto.createHmac(algo, this.verifone.$auth.secret_key)
.update(hash)
.digest('hex');
return await axios($, {
url: `https://api.2checkout.com/rest/6.0/products/`,
headers: {
"X-Avangate-Authentication": `code="${this.verifone.$auth.vendor_code}" date="${requestDateTime}" hash="${hash}" algo="${algo}"`,
Accept: "application/json"
},
})
},
})