CEPAberto 3.0.166
dotnet add package CEPAberto --version 3.0.166
NuGet\Install-Package CEPAberto -Version 3.0.166
<PackageReference Include="CEPAberto" Version="3.0.166" />
paket add CEPAberto --version 3.0.166
#r "nuget: CEPAberto, 3.0.166"
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=3.0.166
// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=3.0.166
CEP Aberto
CEP Aberto API wrapper written in C# (.NET). Implements all V3 features
CI/CD
Build status | Last commit | Tests | Coverage | Code Smells | LOC |
---|---|---|---|---|---|
Code Quality
Installation
Github Releases
Download the latest zip file from the Release page.
Nuget package manager
Package | Version | Downloads |
---|---|---|
CEPAberto |
Features
This client supports the following operations/features of the API V3:
- Get data based on postal code (CEP).
- Get data of a nearest geo location (lat/lon) (Max of 10km).
- Get data based on state initials (UF), city, neighborhood and street/address.
- Get list of cities of a state based on state initials.
- Update the postal code (CEP).
Setup the CEPAbertoClient
Initializes a new instance of CEPAbertoClient class. The API token can be found at http://www.cepaberto.com/api_key (A free registration is required!)
var client = new CEPAbertoClient("my API token");
//var postalData = client.GetData("00000000");
//var cities = client.GetCities("SP");
Get data based on postal code (CEP)
Searches for a postal code data based on postal code
var client = new CEPAbertoClient("my API key");
var postalCode = "40010000";
var result = client.GetData(postalCode);
if(result.Success)
{
Console.WriteLine("Postal data for the zip code {0} found!", postalCode);
Console.WriteLine("Lat: {0} | Lon: {1}", result.Latitude, result.Longitude);
}
else
Console.WriteLine("No data for the zip code {0} available", postalCode);
Get data of a nearest geo location (lat/lon) (Max of 10km)
Searches for the first postal code closest to the requested coordinates, limited to 10km (API limit, not library)
var client = new CEPAbertoClient("my API key");
var result = client.GetData("-20.55", "-43.63");
if(result.Success)
Console.WriteLine("Postal code found: {0}", result.PostalCode);
else
Console.WriteLine("Unable to find a postal data for the coordinates supplied!");
Get data based on state initials (UF), city, neighborhood and street/address
Searches for a postal code data for the address supplied. Neighborhood and Street/Address are optional!
var client = new CEPAbertoClient("my API key");
var result = client.GetData("SP","Ubatuba");
if(result.Success)
Console.WriteLine("Postal code found: {0}", result.PostalCode);
else
Console.WriteLine("Cannot find postal code for Ubatuba/SP");
Get list of cities of a state based on state initials
Get a list of cities for a given state (use state initials aka UF)
var client = new CEPAbertoClient("my API key");
var result = client.GetCities("AM");
if(result.Success)
foreach(var city in result.Cities)
Console.WriteLine("Found city {0} in Amazonas (AM)", city.Name);
Update the postal code (CEP)
Request an update on postal codes that may be outdated or not registered. Accepts upon 100 postal codes (CEP)
var client = new CEPAbertoClient("my API key");
var result = client.Update("03177010");
if(result.Success)
Console.WriteLine("Success on request update on postal code 03177-010");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- GuiStracini.SDKBuilder (>= 3.0.152)
- Microsoft.AspNet.WebApi.Client (>= 5.2.9)
- Newtonsoft.Json (>= 13.0.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.166 | 29 | 6/7/2023 |
3.0.156 | 113 | 5/31/2023 |
3.0.150 | 42 | 5/31/2023 |
3.0.147 | 43 | 5/31/2023 |
3.0.117 | 51 | 5/25/2023 |
3.0.114 | 305 | 5/4/2023 |
3.0.113 | 64 | 5/2/2023 |
3.0.109 | 81 | 4/28/2023 |
3.0.102 | 265 | 4/10/2023 |
3.0.97 | 94 | 4/9/2023 |
3.0.89 | 99 | 4/4/2023 |
3.0.84 | 222 | 4/3/2023 |
3.0.75 | 246 | 3/27/2023 |
3.0.72 | 171 | 3/25/2023 |
3.0.65 | 123 | 3/25/2023 |
3.0.56 | 121 | 3/25/2023 |
2.0.39 | 471 | 1/24/2023 |
2.0.38 | 542 | 1/9/2023 |
2.0.33 | 199 | 1/9/2023 |
2.0.32 | 193 | 1/9/2023 |
2.0.31 | 196 | 1/9/2023 |
2.0.26 | 217 | 12/14/2022 |
2.0.25 | 230 | 12/8/2022 |
2.0.24 | 224 | 12/8/2022 |
2.0.21 | 217 | 12/8/2022 |
2.0.12 | 1,065 | 11/1/2020 |
2.0.11 | 377 | 10/1/2020 |
2.0.10 | 460 | 9/1/2020 |
2.0.9 | 414 | 8/1/2020 |
2.0.8 | 558 | 7/1/2020 |
2.0.7 | 391 | 6/29/2020 |
1.0.58 | 505 | 6/1/2020 |
1.0.57 | 462 | 5/2/2020 |
1.0.56 | 440 | 5/2/2020 |
1.0.54 | 471 | 5/2/2020 |
1.0.52 | 428 | 5/2/2020 |
1.0.51 | 454 | 5/2/2020 |
1.0.50 | 455 | 5/2/2020 |
1.0.49 | 472 | 5/2/2020 |
1.0.48 | 439 | 5/2/2020 |
1.0.47 | 447 | 5/2/2020 |
1.0.46 | 459 | 5/1/2020 |
1.0.45 | 471 | 5/1/2020 |
1.0.44 | 449 | 5/1/2020 |
1.0.43 | 461 | 5/1/2020 |
1.0.42 | 445 | 5/1/2020 |
1.0.41 | 441 | 5/1/2020 |
1.0.40 | 459 | 5/1/2020 |
1.0.39 | 447 | 5/1/2020 |
1.0.38 | 456 | 5/1/2020 |
1.0.37 | 501 | 5/1/2020 |
1.0.36 | 429 | 5/1/2020 |
1.0.35 | 458 | 5/1/2020 |
1.0.34 | 431 | 5/1/2020 |
1.0.33 | 457 | 5/1/2020 |
1.0.32 | 409 | 5/1/2020 |
1.0.31 | 442 | 5/1/2020 |
1.0.30 | 414 | 5/1/2020 |
1.0.29 | 433 | 5/1/2020 |
1.0.28 | 418 | 5/1/2020 |
1.0.27 | 449 | 5/1/2020 |
1.0.26 | 484 | 5/1/2020 |
1.0.25 | 527 | 5/1/2020 |
1.0.24 | 468 | 5/1/2020 |
1.0.22 | 507 | 5/1/2020 |
1.0.21 | 427 | 4/24/2020 |
1.0.20 | 463 | 4/24/2020 |
1.0.19 | 443 | 4/24/2020 |
1.0.12 | 813 | 9/19/2018 |
1.0.9 | 785 | 8/16/2018 |
1.0.8 | 782 | 8/16/2018 |