Enigma provides fresh, accurate data about the identity and financial health of every small business.
The Enigma API enables developers to access data and content from a variety of
sources, including news, weather, and social media. With the Enigma API, you
can build applications that display real-time data, offer insights and
analysis, and provide a variety of other features and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enigma: {
type: "app",
app: "enigma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enigma.com/businesses/{your_enigma_id}`,
headers: {
"x-api-key": `${this.enigma.$auth.api_key}`,
"accept": `application/json`,
},
params: {
lookback_months: `1`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})