CEPAberto 3.0.378
dotnet add package CEPAberto --version 3.0.378
NuGet\Install-Package CEPAberto -Version 3.0.378
<PackageReference Include="CEPAberto" Version="3.0.378" />
paket add CEPAberto --version 3.0.378
#r "nuget: CEPAberto, 3.0.378"
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=3.0.378
// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=3.0.378
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.322)
- 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.378 | 47 | 9/25/2023 |
3.0.373 | 66 | 9/24/2023 |
3.0.370 | 65 | 9/24/2023 |
3.0.365 | 66 | 9/24/2023 |
3.0.356 | 74 | 9/17/2023 |
3.0.353 | 59 | 9/17/2023 |
3.0.348 | 92 | 9/13/2023 |
3.0.338 | 95 | 9/13/2023 |
3.0.335 | 72 | 9/13/2023 |
3.0.332 | 77 | 9/13/2023 |
3.0.322 | 233 | 8/28/2023 |
3.0.314 | 266 | 8/13/2023 |
3.0.311 | 91 | 8/13/2023 |
3.0.308 | 107 | 8/13/2023 |
3.0.301 | 103 | 8/13/2023 |
3.0.291 | 178 | 8/3/2023 |
3.0.288 | 120 | 8/2/2023 |
3.0.283 | 152 | 7/28/2023 |
3.0.280 | 117 | 7/25/2023 |
3.0.277 | 117 | 7/25/2023 |
3.0.269 | 162 | 7/19/2023 |
3.0.266 | 102 | 7/19/2023 |
3.0.212 | 274 | 6/27/2023 |
3.0.209 | 152 | 6/26/2023 |
3.0.202 | 179 | 6/19/2023 |
3.0.193 | 105 | 6/18/2023 |
3.0.188 | 111 | 6/18/2023 |
3.0.183 | 105 | 6/18/2023 |
3.0.166 | 278 | 6/7/2023 |
3.0.156 | 266 | 5/31/2023 |
3.0.150 | 101 | 5/31/2023 |
3.0.147 | 104 | 5/31/2023 |
3.0.117 | 113 | 5/25/2023 |
3.0.114 | 356 | 5/4/2023 |
3.0.113 | 112 | 5/2/2023 |
3.0.109 | 134 | 4/28/2023 |
3.0.102 | 312 | 4/10/2023 |
3.0.97 | 147 | 4/9/2023 |
3.0.89 | 151 | 4/4/2023 |
3.0.84 | 275 | 4/3/2023 |
3.0.75 | 298 | 3/27/2023 |
3.0.72 | 221 | 3/25/2023 |
3.0.65 | 178 | 3/25/2023 |
3.0.56 | 175 | 3/25/2023 |
2.0.39 | 530 | 1/24/2023 |
2.0.38 | 598 | 1/9/2023 |
2.0.33 | 252 | 1/9/2023 |
2.0.32 | 247 | 1/9/2023 |
2.0.31 | 253 | 1/9/2023 |
2.0.26 | 275 | 12/14/2022 |
2.0.25 | 283 | 12/8/2022 |
2.0.24 | 281 | 12/8/2022 |
2.0.21 | 274 | 12/8/2022 |
2.0.12 | 1,138 | 11/1/2020 |
2.0.11 | 450 | 10/1/2020 |
2.0.10 | 518 | 9/1/2020 |
2.0.9 | 474 | 8/1/2020 |
2.0.8 | 630 | 7/1/2020 |
2.0.7 | 458 | 6/29/2020 |
1.0.58 | 575 | 6/1/2020 |
1.0.57 | 529 | 5/2/2020 |
1.0.56 | 510 | 5/2/2020 |
1.0.54 | 539 | 5/2/2020 |
1.0.52 | 497 | 5/2/2020 |
1.0.51 | 524 | 5/2/2020 |
1.0.50 | 530 | 5/2/2020 |
1.0.49 | 568 | 5/2/2020 |
1.0.48 | 510 | 5/2/2020 |
1.0.47 | 516 | 5/2/2020 |
1.0.46 | 526 | 5/1/2020 |
1.0.45 | 542 | 5/1/2020 |
1.0.44 | 517 | 5/1/2020 |
1.0.43 | 534 | 5/1/2020 |
1.0.42 | 512 | 5/1/2020 |
1.0.41 | 512 | 5/1/2020 |
1.0.40 | 539 | 5/1/2020 |
1.0.39 | 518 | 5/1/2020 |
1.0.38 | 527 | 5/1/2020 |
1.0.37 | 565 | 5/1/2020 |
1.0.36 | 497 | 5/1/2020 |
1.0.35 | 522 | 5/1/2020 |
1.0.34 | 512 | 5/1/2020 |
1.0.33 | 517 | 5/1/2020 |
1.0.32 | 479 | 5/1/2020 |
1.0.31 | 513 | 5/1/2020 |
1.0.30 | 483 | 5/1/2020 |
1.0.29 | 503 | 5/1/2020 |
1.0.28 | 491 | 5/1/2020 |
1.0.27 | 522 | 5/1/2020 |
1.0.26 | 553 | 5/1/2020 |
1.0.25 | 598 | 5/1/2020 |
1.0.24 | 534 | 5/1/2020 |
1.0.22 | 560 | 5/1/2020 |
1.0.21 | 495 | 4/24/2020 |
1.0.20 | 523 | 4/24/2020 |
1.0.19 | 511 | 4/24/2020 |
1.0.12 | 878 | 9/19/2018 |
1.0.9 | 861 | 8/16/2018 |
1.0.8 | 848 | 8/16/2018 |