CEPAberto 4.0.628
See the version list below for details.
dotnet add package CEPAberto --version 4.0.628
NuGet\Install-Package CEPAberto -Version 4.0.628
<PackageReference Include="CEPAberto" Version="4.0.628" />
paket add CEPAberto --version 4.0.628
#r "nuget: CEPAberto, 4.0.628"
// Install CEPAberto as a Cake Addin #addin nuget:?package=CEPAberto&version=4.0.628 // Install CEPAberto as a Cake Tool #tool nuget:?package=CEPAberto&version=4.0.628
CEP Aberto SDK .NET
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 | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- GuiStracini.SDKBuilder (>= 3.0.622)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- GuiStracini.SDKBuilder (>= 3.0.622)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- GuiStracini.SDKBuilder (>= 3.0.622)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- GuiStracini.SDKBuilder (>= 3.0.622)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
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 |
---|---|---|
4.0.636 | 67 | 12/23/2024 |
4.0.633 | 68 | 12/23/2024 |
4.0.628 | 76 | 12/16/2024 |
4.0.625 | 69 | 12/16/2024 |
4.0.620 | 78 | 12/9/2024 |
4.0.617 | 76 | 12/9/2024 |
4.0.612 | 78 | 12/2/2024 |
4.0.609 | 86 | 11/25/2024 |
4.0.606 | 64 | 11/25/2024 |
4.0.601 | 71 | 11/25/2024 |
4.0.594 | 83 | 11/18/2024 |
4.0.591 | 89 | 11/11/2024 |
4.0.588 | 88 | 11/5/2024 |
4.0.585 | 96 | 10/28/2024 |
4.0.582 | 89 | 10/28/2024 |
4.0.577 | 83 | 10/21/2024 |
4.0.574 | 92 | 10/21/2024 |
4.0.569 | 213 | 10/14/2024 |
4.0.566 | 94 | 10/7/2024 |
4.0.563 | 87 | 10/3/2024 |
4.0.560 | 89 | 10/3/2024 |
4.0.557 | 95 | 10/3/2024 |
4.0.550 | 279 | 9/23/2024 |
4.0.547 | 83 | 9/23/2024 |
4.0.542 | 135 | 9/16/2024 |
4.0.539 | 107 | 9/16/2024 |
4.0.534 | 113 | 9/9/2024 |
4.0.531 | 104 | 9/9/2024 |
4.0.526 | 107 | 9/9/2024 |
4.0.519 | 90 | 9/9/2024 |
4.0.510 | 106 | 9/9/2024 |
4.0.499 | 145 | 9/2/2024 |
4.0.496 | 100 | 9/2/2024 |
4.0.491 | 100 | 8/27/2024 |
4.0.486 | 99 | 8/27/2024 |
4.0.481 | 100 | 8/27/2024 |
4.0.476 | 102 | 8/27/2024 |
4.0.471 | 104 | 8/27/2024 |
4.0.464 | 132 | 8/26/2024 |
4.0.453 | 135 | 8/24/2024 |
4.0.449 | 154 | 8/12/2024 |
4.0.446 | 87 | 8/5/2024 |
4.0.443 | 85 | 7/29/2024 |
4.0.440 | 121 | 7/22/2024 |
4.0.437 | 101 | 7/16/2024 |
4.0.434 | 96 | 7/16/2024 |
4.0.431 | 99 | 7/16/2024 |
4.0.426 | 97 | 7/16/2024 |
4.0.419 | 99 | 7/16/2024 |
4.0.412 | 106 | 7/16/2024 |
4.0.382 | 107 | 6/10/2024 |
4.0.375 | 114 | 6/3/2024 |
4.0.372 | 104 | 5/28/2024 |
4.0.369 | 98 | 5/28/2024 |
4.0.364 | 92 | 5/28/2024 |
4.0.357 | 113 | 5/28/2024 |
4.0.348 | 92 | 5/20/2024 |
4.0.345 | 89 | 5/20/2024 |
4.0.340 | 114 | 5/13/2024 |
4.0.337 | 132 | 5/6/2024 |
4.0.334 | 126 | 5/6/2024 |
4.0.331 | 118 | 4/30/2024 |
4.0.328 | 125 | 4/30/2024 |
4.0.323 | 125 | 4/30/2024 |
4.0.316 | 124 | 4/30/2024 |
4.0.313 | 101 | 4/29/2024 |
4.0.302 | 117 | 4/22/2024 |
4.0.299 | 115 | 4/22/2024 |
4.0.294 | 114 | 4/22/2024 |
4.0.291 | 99 | 4/22/2024 |
4.0.282 | 120 | 4/16/2024 |
4.0.279 | 109 | 4/16/2024 |
4.0.274 | 109 | 4/16/2024 |
4.0.267 | 117 | 4/16/2024 |
4.0.250 | 123 | 4/8/2024 |
4.0.247 | 94 | 4/8/2024 |
4.0.242 | 125 | 4/8/2024 |
4.0.235 | 114 | 3/25/2024 |
4.0.232 | 112 | 3/25/2024 |
4.0.227 | 121 | 3/25/2024 |
4.0.220 | 121 | 3/21/2024 |
4.0.210 | 132 | 2/26/2024 |
4.0.207 | 123 | 2/26/2024 |
4.0.202 | 116 | 2/26/2024 |
4.0.193 | 118 | 2/19/2024 |
4.0.186 | 120 | 2/19/2024 |
4.0.177 | 111 | 2/19/2024 |
4.0.160 | 119 | 2/14/2024 |
4.0.154 | 113 | 2/12/2024 |
4.0.151 | 105 | 2/12/2024 |
4.0.148 | 113 | 2/6/2024 |
4.0.145 | 113 | 2/5/2024 |
4.0.140 | 117 | 1/30/2024 |
4.0.135 | 104 | 1/29/2024 |
4.0.132 | 109 | 1/29/2024 |
4.0.127 | 105 | 1/29/2024 |
4.0.120 | 112 | 1/29/2024 |
4.0.112 | 125 | 1/22/2024 |
4.0.107 | 115 | 1/22/2024 |
4.0.104 | 118 | 1/22/2024 |
4.0.99 | 116 | 1/22/2024 |
4.0.90 | 125 | 1/16/2024 |
4.0.82 | 131 | 1/15/2024 |
4.0.77 | 123 | 1/15/2024 |
4.0.70 | 132 | 1/8/2024 |
4.0.67 | 123 | 1/8/2024 |
4.0.62 | 163 | 12/25/2023 |
4.0.59 | 133 | 12/25/2023 |
4.0.54 | 140 | 12/25/2023 |
4.0.47 | 124 | 12/25/2023 |
4.0.38 | 150 | 12/18/2023 |
4.0.35 | 127 | 12/18/2023 |
4.0.32 | 133 | 12/18/2023 |
4.0.25 | 118 | 12/18/2023 |
4.0.3 | 144 | 12/17/2023 |
3.0.467 | 140 | 12/14/2023 |
3.0.461 | 148 | 12/12/2023 |
3.0.458 | 153 | 12/11/2023 |
3.0.455 | 141 | 12/11/2023 |
3.0.452 | 167 | 12/11/2023 |
3.0.445 | 169 | 12/5/2023 |
3.0.440 | 150 | 12/5/2023 |
3.0.435 | 146 | 11/28/2023 |
3.0.432 | 142 | 11/28/2023 |
3.0.427 | 268 | 11/23/2023 |
3.0.424 | 146 | 11/21/2023 |
3.0.417 | 708 | 11/14/2023 |
3.0.411 | 123 | 11/14/2023 |
3.0.408 | 146 | 11/14/2023 |
3.0.400 | 167 | 11/10/2023 |
3.0.391 | 155 | 11/7/2023 |
3.0.388 | 148 | 11/7/2023 |
3.0.385 | 180 | 10/24/2023 |
3.0.382 | 155 | 10/17/2023 |
3.0.378 | 189 | 9/25/2023 |
3.0.373 | 168 | 9/24/2023 |
3.0.370 | 162 | 9/24/2023 |
3.0.365 | 165 | 9/24/2023 |
3.0.356 | 177 | 9/17/2023 |
3.0.353 | 164 | 9/17/2023 |
3.0.348 | 199 | 9/13/2023 |
3.0.338 | 192 | 9/13/2023 |
3.0.335 | 181 | 9/13/2023 |
3.0.332 | 181 | 9/13/2023 |
3.0.322 | 347 | 8/28/2023 |
3.0.314 | 368 | 8/13/2023 |
3.0.311 | 178 | 8/13/2023 |
3.0.308 | 199 | 8/13/2023 |
3.0.301 | 202 | 8/13/2023 |
3.0.291 | 277 | 8/3/2023 |
3.0.288 | 220 | 8/2/2023 |
3.0.283 | 246 | 7/28/2023 |
3.0.280 | 212 | 7/25/2023 |
3.0.277 | 201 | 7/25/2023 |
3.0.269 | 265 | 7/19/2023 |
3.0.266 | 182 | 7/19/2023 |
3.0.212 | 366 | 6/27/2023 |
3.0.209 | 246 | 6/26/2023 |
3.0.202 | 268 | 6/19/2023 |
3.0.193 | 200 | 6/18/2023 |
3.0.188 | 218 | 6/18/2023 |
3.0.183 | 197 | 6/18/2023 |
3.0.166 | 374 | 6/7/2023 |
3.0.156 | 366 | 5/31/2023 |
3.0.150 | 183 | 5/31/2023 |
3.0.147 | 203 | 5/31/2023 |
3.0.117 | 185 | 5/25/2023 |
3.0.114 | 454 | 5/4/2023 |
3.0.113 | 210 | 5/2/2023 |
3.0.109 | 221 | 4/28/2023 |
3.0.102 | 396 | 4/10/2023 |
3.0.97 | 233 | 4/9/2023 |
3.0.89 | 247 | 4/4/2023 |
3.0.84 | 366 | 4/3/2023 |
3.0.75 | 393 | 3/27/2023 |
3.0.72 | 313 | 3/25/2023 |
3.0.65 | 262 | 3/25/2023 |
3.0.56 | 251 | 3/25/2023 |
2.0.39 | 629 | 1/24/2023 |
2.0.38 | 701 | 1/9/2023 |
2.0.33 | 346 | 1/9/2023 |
2.0.32 | 344 | 1/9/2023 |
2.0.31 | 338 | 1/9/2023 |
2.0.26 | 370 | 12/14/2022 |
2.0.25 | 365 | 12/8/2022 |
2.0.24 | 357 | 12/8/2022 |
2.0.21 | 365 | 12/8/2022 |
2.0.12 | 1,245 | 11/1/2020 |
2.0.11 | 544 | 10/1/2020 |
2.0.10 | 614 | 9/1/2020 |
2.0.9 | 554 | 8/1/2020 |
2.0.8 | 697 | 7/1/2020 |
2.0.7 | 555 | 6/29/2020 |
1.0.58 | 660 | 6/1/2020 |
1.0.57 | 618 | 5/2/2020 |
1.0.56 | 609 | 5/2/2020 |
1.0.54 | 631 | 5/2/2020 |
1.0.52 | 573 | 5/2/2020 |
1.0.51 | 602 | 5/2/2020 |
1.0.50 | 615 | 5/2/2020 |
1.0.49 | 662 | 5/2/2020 |
1.0.48 | 597 | 5/2/2020 |
1.0.47 | 605 | 5/2/2020 |
1.0.46 | 618 | 5/1/2020 |
1.0.45 | 627 | 5/1/2020 |
1.0.44 | 606 | 5/1/2020 |
1.0.43 | 625 | 5/1/2020 |
1.0.42 | 592 | 5/1/2020 |
1.0.41 | 606 | 5/1/2020 |
1.0.40 | 629 | 5/1/2020 |
1.0.39 | 617 | 5/1/2020 |
1.0.38 | 616 | 5/1/2020 |
1.0.37 | 661 | 5/1/2020 |
1.0.36 | 594 | 5/1/2020 |
1.0.35 | 601 | 5/1/2020 |
1.0.34 | 603 | 5/1/2020 |
1.0.33 | 607 | 5/1/2020 |
1.0.32 | 571 | 5/1/2020 |
1.0.31 | 594 | 5/1/2020 |
1.0.30 | 573 | 5/1/2020 |
1.0.29 | 597 | 5/1/2020 |
1.0.28 | 588 | 5/1/2020 |
1.0.27 | 628 | 5/1/2020 |
1.0.26 | 653 | 5/1/2020 |
1.0.25 | 699 | 5/1/2020 |
1.0.24 | 628 | 5/1/2020 |
1.0.22 | 654 | 5/1/2020 |
1.0.21 | 583 | 4/24/2020 |
1.0.20 | 610 | 4/24/2020 |
1.0.19 | 589 | 4/24/2020 |
1.0.12 | 987 | 9/19/2018 |
1.0.9 | 968 | 8/16/2018 |
1.0.8 | 963 | 8/16/2018 |