CEPAberto 3.0.458
dotnet add package CEPAberto --version 3.0.458
NuGet\Install-Package CEPAberto -Version 3.0.458
<PackageReference Include="CEPAberto" Version="3.0.458" />
paket add CEPAberto --version 3.0.458
#r "nuget: CEPAberto, 3.0.458"
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=3.0.458
// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=3.0.458
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.395)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Numerics.Vectors (>= 4.5.0)
- 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.458 | 0 | 12/11/2023 |
3.0.455 | 0 | 12/11/2023 |
3.0.452 | 7 | 12/11/2023 |
3.0.445 | 67 | 12/5/2023 |
3.0.440 | 53 | 12/5/2023 |
3.0.435 | 69 | 11/28/2023 |
3.0.432 | 59 | 11/28/2023 |
3.0.427 | 76 | 11/23/2023 |
3.0.424 | 66 | 11/21/2023 |
3.0.417 | 97 | 11/14/2023 |
3.0.411 | 55 | 11/14/2023 |
3.0.408 | 55 | 11/14/2023 |
3.0.400 | 83 | 11/10/2023 |
3.0.391 | 61 | 11/7/2023 |
3.0.388 | 58 | 11/7/2023 |
3.0.385 | 94 | 10/24/2023 |
3.0.382 | 83 | 10/17/2023 |
3.0.378 | 98 | 9/25/2023 |
3.0.373 | 79 | 9/24/2023 |
3.0.370 | 79 | 9/24/2023 |
3.0.365 | 77 | 9/24/2023 |
3.0.356 | 98 | 9/17/2023 |
3.0.353 | 74 | 9/17/2023 |
3.0.348 | 107 | 9/13/2023 |
3.0.338 | 109 | 9/13/2023 |
3.0.335 | 84 | 9/13/2023 |
3.0.332 | 89 | 9/13/2023 |
3.0.322 | 267 | 8/28/2023 |
3.0.314 | 278 | 8/13/2023 |
3.0.311 | 103 | 8/13/2023 |
3.0.308 | 117 | 8/13/2023 |
3.0.301 | 113 | 8/13/2023 |
3.0.291 | 192 | 8/3/2023 |
3.0.288 | 131 | 8/2/2023 |
3.0.283 | 164 | 7/28/2023 |
3.0.280 | 131 | 7/25/2023 |
3.0.277 | 131 | 7/25/2023 |
3.0.269 | 173 | 7/19/2023 |
3.0.266 | 116 | 7/19/2023 |
3.0.212 | 286 | 6/27/2023 |
3.0.209 | 165 | 6/26/2023 |
3.0.202 | 198 | 6/19/2023 |
3.0.193 | 119 | 6/18/2023 |
3.0.188 | 128 | 6/18/2023 |
3.0.183 | 118 | 6/18/2023 |
3.0.166 | 295 | 6/7/2023 |
3.0.156 | 282 | 5/31/2023 |
3.0.150 | 111 | 5/31/2023 |
3.0.147 | 118 | 5/31/2023 |
3.0.117 | 124 | 5/25/2023 |
3.0.114 | 367 | 5/4/2023 |
3.0.113 | 124 | 5/2/2023 |
3.0.109 | 147 | 4/28/2023 |
3.0.102 | 325 | 4/10/2023 |
3.0.97 | 161 | 4/9/2023 |
3.0.89 | 164 | 4/4/2023 |
3.0.84 | 292 | 4/3/2023 |
3.0.75 | 311 | 3/27/2023 |
3.0.72 | 240 | 3/25/2023 |
3.0.65 | 193 | 3/25/2023 |
3.0.56 | 191 | 3/25/2023 |
2.0.39 | 543 | 1/24/2023 |
2.0.38 | 613 | 1/9/2023 |
2.0.33 | 268 | 1/9/2023 |
2.0.32 | 261 | 1/9/2023 |
2.0.31 | 266 | 1/9/2023 |
2.0.26 | 284 | 12/14/2022 |
2.0.25 | 292 | 12/8/2022 |
2.0.24 | 288 | 12/8/2022 |
2.0.21 | 283 | 12/8/2022 |
2.0.12 | 1,148 | 11/1/2020 |
2.0.11 | 460 | 10/1/2020 |
2.0.10 | 532 | 9/1/2020 |
2.0.9 | 482 | 8/1/2020 |
2.0.8 | 637 | 7/1/2020 |
2.0.7 | 468 | 6/29/2020 |
1.0.58 | 581 | 6/1/2020 |
1.0.57 | 533 | 5/2/2020 |
1.0.56 | 517 | 5/2/2020 |
1.0.54 | 548 | 5/2/2020 |
1.0.52 | 507 | 5/2/2020 |
1.0.51 | 531 | 5/2/2020 |
1.0.50 | 537 | 5/2/2020 |
1.0.49 | 574 | 5/2/2020 |
1.0.48 | 517 | 5/2/2020 |
1.0.47 | 522 | 5/2/2020 |
1.0.46 | 534 | 5/1/2020 |
1.0.45 | 549 | 5/1/2020 |
1.0.44 | 523 | 5/1/2020 |
1.0.43 | 542 | 5/1/2020 |
1.0.42 | 521 | 5/1/2020 |
1.0.41 | 520 | 5/1/2020 |
1.0.40 | 547 | 5/1/2020 |
1.0.39 | 525 | 5/1/2020 |
1.0.38 | 534 | 5/1/2020 |
1.0.37 | 571 | 5/1/2020 |
1.0.36 | 504 | 5/1/2020 |
1.0.35 | 532 | 5/1/2020 |
1.0.34 | 517 | 5/1/2020 |
1.0.33 | 526 | 5/1/2020 |
1.0.32 | 487 | 5/1/2020 |
1.0.31 | 522 | 5/1/2020 |
1.0.30 | 487 | 5/1/2020 |
1.0.29 | 512 | 5/1/2020 |
1.0.28 | 504 | 5/1/2020 |
1.0.27 | 534 | 5/1/2020 |
1.0.26 | 562 | 5/1/2020 |
1.0.25 | 609 | 5/1/2020 |
1.0.24 | 544 | 5/1/2020 |
1.0.22 | 569 | 5/1/2020 |
1.0.21 | 501 | 4/24/2020 |
1.0.20 | 528 | 4/24/2020 |
1.0.19 | 517 | 4/24/2020 |
1.0.12 | 885 | 9/19/2018 |
1.0.9 | 868 | 8/16/2018 |
1.0.8 | 858 | 8/16/2018 |