Use post office services in your app how to search for zip code or calculate orders and order deadlines
Sigepweb is a post office system created to provide the services of this "incredible" delivery company with your business.
For posts management, Post Office offers contract customers the Sigep Web system. Sigep Web assists in preparing orders, generating labels with tracking codes and forwards this information to the Post Office unit to post the packages more quickly. Check here
You may be wondering if this package offers all the services the API offers and so far the answer is no!
The fact is that there are many methods to implement and for now I honestly don't know if this is really useful to the community. I will be working as much as possible in this package to grow, but honestly I don't have much time for that. So if you have any need that this package can resolve in the future contact us to ask for your implementation and I will then give you priority. Remembering that everything will be done as far as possible.
Help this package grow and reach the point of offering all the services the API offers. Leave your pull-request. Also feel free to contact me.
IMPORTANT : I will only approve PR's with tests. TDD in the vein!
var sigep = Sigepweb (contrato : SigepContrato . semContrato ());
var calcPrecoPrazo = await sigep. calcPrecoPrazo (
cepOrigem : '70002900' ,
cepDestino : '04547000' ,
valorPeso : 1 ,
);
// Isso vai retornar uma lista com os
// resultados do calculo
for ( var item in calcPrecoPrazo) {
print ( "${ item . nome }: R $ ${ item . valor }" );
}