.env: file with the settings (required)
ENV =
PORT =
MONGO_USER =
MONGO_PASS =
MONGO_URI =
CPFCNPJ_API =
RECEITAWS_API =
git clone https://github.com/wellingtonsilverio/cpfagora.git
cd cpfagora
get in https://nodejs.org, choice you platform, download this and install in admin mode
npm i
npm start
returns the entered CPF data, only CPFs previously consulted in the database
GET /search/{CPF}
{
"status":true,
"data": {
"_id":"5c9e22ef2880322f56a8e41b",
"status":1, // Active/Regular
"cpf": 00000000000,
"nome":"José da Silva",
"nascimento":"1990-12-31T03:00:00.000Z",
"createdAt":"2019-03-29T13:51:43.865Z",
"updatedAt":"2019-03-29T13:51:43.865Z"
}
}
returns the data of the CPF informed, if we do not have data about it, at the time
GET /search/{SECRET_KEY}/{CPF}
{
"status":true,
"data": {
"_id":"5c9e22ef2880322f56a8e41b",
"status":1, // Active/Regular
"cpf": 00000000000,
"nome":"José da Silva",
"nascimento":"1990-12-31T03:00:00.000Z",
"createdAt":"2019-03-29T13:51:43.865Z",
"updatedAt":"2019-03-29T13:51:43.865Z"
},
"credit": 100
}