Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
Returns the available data for a Zipcode number according to the selected dataset. See the documentation
Returns the available data for a CNPJ number according to the selected dataset. See the documentation
Returns the available data for a CPF number according to the selected dataset. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bigdatacorp: {
type: "app",
app: "bigdatacorp",
}
},
async run({steps, $}) {
const data = {
"q": `doc{007.408.869-67}`,
"Datasets": `registration_data`,
}
return await axios($, {
method: "post",
url: `https://plataforma.bigdatacorp.com.br/pessoas`,
headers: {
"Accept": `application/json`,
"AccessToken": `${this.bigdatacorp.$auth.access_token}`,
"TokenId": `${this.bigdatacorp.$auth.token_id}`,
},
data,
})
},
})