import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dadata_ru: {
type: "app",
app: "dadata_ru",
}
},
async run({steps, $}) {
const data = {
"query": `pipedream @`,
}
return await axios($, {
url: `https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/email`,
headers: {
"Authorization": `Token ${this.dadata_ru.$auth.api_key}`,
},
data,
})
},
})
DaData.ru uses API keys for authentication. When you connect your DaData.ru account, Pipedream securely stores the keys so you can easily authenticate to DaData.ru APIs in both code and no-code steps.
In the DaData.ru online service, the secret key is automatically generated along with the API key, and it's available in the Account page.