brasil_pai

Package that consumes data from the Brasil API.

Get started

Add dependency

dependencies:
  brasil_api: ^1.0.0

Super simple to use

import 'package:brasil_api/brasil_api.dart';
void getCep() async {
  try {
    var data = await Cep.findCep('68904020');
    print(response);
  } catch (e) {
    print(e);
  }
}

Examples

Performing a findCep request:

Cep cep;
cep = await Cep.findCep('68904020');
print(cep);

Performing a findCepV2 request:

CepV2 cep;
cep = await CepV2.findCepV2('68902080');
print(cep);

Performing a findCepV2 request:

CepV2 cep;
cep = await CepV2.findCepV2('68902080');
print(cep);

Performing a findBank request:

Bank bank;
bank = await Bank.findBank('1');
print(bank);

Performing a findAllBank request:

List<Bank> banks;
banks = await Bank.findAllBank();
print(banks);

Performing a findDdd request:

Ddd ddd;
ddd = await Ddd.findDdd('1');
print(ddd);

Performing a findFeriados request:

List<Feriado> feriados;
feriados = await Feriado.findFeriados('2022');
print(feriados);

Performing a findNcm request:

Ncm ncm;
ncm = await Ncm.findNcm('85041000');
print(ncm);

This open source project authorized by https://github.com/ZaunSupremoXV/brasil_api/blob/main/LICENSE , and the license is MIT.

Features and bugs

Please file feature requests and bugs at the issue tracker.

🤝 Colaborador

Thanks to the following people who contributed to this project:

Foto do Erick no GitHub
Erick Vasconcelos

Libraries

brasil_api