CEPAberto 4.0.471
See the version list below for details.
dotnet add package CEPAberto --version 4.0.471
NuGet\Install-Package CEPAberto -Version 4.0.471
<PackageReference Include="CEPAberto" Version="4.0.471" />
paket add CEPAberto --version 4.0.471
#r "nuget: CEPAberto, 4.0.471"
// Install CEPAberto as a Cake Addin #addin nuget:?package=CEPAberto&version=4.0.471 // Install CEPAberto as a Cake Tool #tool nuget:?package=CEPAberto&version=4.0.471
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.576)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- GuiStracini.SDKBuilder (>= 3.0.576)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- GuiStracini.SDKBuilder (>= 3.0.576)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- GuiStracini.SDKBuilder (>= 3.0.576)
- 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.588 | 32 | 11/5/2024 |
4.0.585 | 73 | 10/28/2024 |
4.0.582 | 69 | 10/28/2024 |
4.0.577 | 65 | 10/21/2024 |
4.0.574 | 74 | 10/21/2024 |
4.0.569 | 199 | 10/14/2024 |
4.0.566 | 79 | 10/7/2024 |
4.0.563 | 73 | 10/3/2024 |
4.0.560 | 70 | 10/3/2024 |
4.0.557 | 77 | 10/3/2024 |
4.0.550 | 202 | 9/23/2024 |
4.0.547 | 71 | 9/23/2024 |
4.0.542 | 120 | 9/16/2024 |
4.0.539 | 94 | 9/16/2024 |
4.0.534 | 97 | 9/9/2024 |
4.0.531 | 90 | 9/9/2024 |
4.0.526 | 91 | 9/9/2024 |
4.0.519 | 72 | 9/9/2024 |
4.0.510 | 90 | 9/9/2024 |
4.0.499 | 131 | 9/2/2024 |
4.0.496 | 84 | 9/2/2024 |
4.0.491 | 88 | 8/27/2024 |
4.0.486 | 88 | 8/27/2024 |
4.0.481 | 87 | 8/27/2024 |
4.0.476 | 91 | 8/27/2024 |
4.0.471 | 91 | 8/27/2024 |
4.0.464 | 121 | 8/26/2024 |
4.0.453 | 124 | 8/24/2024 |
4.0.449 | 143 | 8/12/2024 |
4.0.446 | 75 | 8/5/2024 |
4.0.443 | 74 | 7/29/2024 |
4.0.440 | 108 | 7/22/2024 |
4.0.437 | 84 | 7/16/2024 |
4.0.434 | 84 | 7/16/2024 |
4.0.431 | 86 | 7/16/2024 |
4.0.426 | 81 | 7/16/2024 |
4.0.419 | 86 | 7/16/2024 |
4.0.412 | 93 | 7/16/2024 |
4.0.382 | 100 | 6/10/2024 |
4.0.375 | 105 | 6/3/2024 |
4.0.372 | 95 | 5/28/2024 |
4.0.369 | 89 | 5/28/2024 |
4.0.364 | 81 | 5/28/2024 |
4.0.357 | 101 | 5/28/2024 |
4.0.348 | 81 | 5/20/2024 |
4.0.345 | 77 | 5/20/2024 |
4.0.340 | 100 | 5/13/2024 |
4.0.337 | 123 | 5/6/2024 |
4.0.334 | 117 | 5/6/2024 |
4.0.331 | 109 | 4/30/2024 |
4.0.328 | 116 | 4/30/2024 |
4.0.323 | 118 | 4/30/2024 |
4.0.316 | 117 | 4/30/2024 |
4.0.313 | 92 | 4/29/2024 |
4.0.302 | 110 | 4/22/2024 |
4.0.299 | 108 | 4/22/2024 |
4.0.294 | 105 | 4/22/2024 |
4.0.291 | 92 | 4/22/2024 |
4.0.282 | 111 | 4/16/2024 |
4.0.279 | 102 | 4/16/2024 |
4.0.274 | 102 | 4/16/2024 |
4.0.267 | 110 | 4/16/2024 |
4.0.250 | 116 | 4/8/2024 |
4.0.247 | 87 | 4/8/2024 |
4.0.242 | 112 | 4/8/2024 |
4.0.235 | 107 | 3/25/2024 |
4.0.232 | 105 | 3/25/2024 |
4.0.227 | 112 | 3/25/2024 |
4.0.220 | 114 | 3/21/2024 |
4.0.210 | 125 | 2/26/2024 |
4.0.207 | 115 | 2/26/2024 |
4.0.202 | 109 | 2/26/2024 |
4.0.193 | 109 | 2/19/2024 |
4.0.186 | 113 | 2/19/2024 |
4.0.177 | 99 | 2/19/2024 |
4.0.160 | 112 | 2/14/2024 |
4.0.154 | 102 | 2/12/2024 |
4.0.151 | 92 | 2/12/2024 |
4.0.148 | 102 | 2/6/2024 |
4.0.145 | 106 | 2/5/2024 |
4.0.140 | 110 | 1/30/2024 |
4.0.135 | 97 | 1/29/2024 |
4.0.132 | 100 | 1/29/2024 |
4.0.127 | 98 | 1/29/2024 |
4.0.120 | 101 | 1/29/2024 |
4.0.112 | 118 | 1/22/2024 |
4.0.107 | 108 | 1/22/2024 |
4.0.104 | 111 | 1/22/2024 |
4.0.99 | 109 | 1/22/2024 |
4.0.90 | 117 | 1/16/2024 |
4.0.82 | 124 | 1/15/2024 |
4.0.77 | 116 | 1/15/2024 |
4.0.70 | 123 | 1/8/2024 |
4.0.67 | 116 | 1/8/2024 |
4.0.62 | 156 | 12/25/2023 |
4.0.59 | 126 | 12/25/2023 |
4.0.54 | 129 | 12/25/2023 |
4.0.47 | 117 | 12/25/2023 |
4.0.38 | 143 | 12/18/2023 |
4.0.35 | 120 | 12/18/2023 |
4.0.32 | 126 | 12/18/2023 |
4.0.25 | 111 | 12/18/2023 |
4.0.3 | 137 | 12/17/2023 |
3.0.467 | 133 | 12/14/2023 |
3.0.461 | 135 | 12/12/2023 |
3.0.458 | 146 | 12/11/2023 |
3.0.455 | 134 | 12/11/2023 |
3.0.452 | 160 | 12/11/2023 |
3.0.445 | 162 | 12/5/2023 |
3.0.440 | 143 | 12/5/2023 |
3.0.435 | 137 | 11/28/2023 |
3.0.432 | 131 | 11/28/2023 |
3.0.427 | 257 | 11/23/2023 |
3.0.424 | 139 | 11/21/2023 |
3.0.417 | 700 | 11/14/2023 |
3.0.411 | 116 | 11/14/2023 |
3.0.408 | 139 | 11/14/2023 |
3.0.400 | 160 | 11/10/2023 |
3.0.391 | 144 | 11/7/2023 |
3.0.388 | 141 | 11/7/2023 |
3.0.385 | 169 | 10/24/2023 |
3.0.382 | 148 | 10/17/2023 |
3.0.378 | 178 | 9/25/2023 |
3.0.373 | 159 | 9/24/2023 |
3.0.370 | 155 | 9/24/2023 |
3.0.365 | 156 | 9/24/2023 |
3.0.356 | 170 | 9/17/2023 |
3.0.353 | 155 | 9/17/2023 |
3.0.348 | 192 | 9/13/2023 |
3.0.338 | 183 | 9/13/2023 |
3.0.335 | 174 | 9/13/2023 |
3.0.332 | 174 | 9/13/2023 |
3.0.322 | 340 | 8/28/2023 |
3.0.314 | 359 | 8/13/2023 |
3.0.311 | 171 | 8/13/2023 |
3.0.308 | 192 | 8/13/2023 |
3.0.301 | 195 | 8/13/2023 |
3.0.291 | 270 | 8/3/2023 |
3.0.288 | 211 | 8/2/2023 |
3.0.283 | 237 | 7/28/2023 |
3.0.280 | 205 | 7/25/2023 |
3.0.277 | 194 | 7/25/2023 |
3.0.269 | 258 | 7/19/2023 |
3.0.266 | 172 | 7/19/2023 |
3.0.212 | 355 | 6/27/2023 |
3.0.209 | 239 | 6/26/2023 |
3.0.202 | 261 | 6/19/2023 |
3.0.193 | 191 | 6/18/2023 |
3.0.188 | 211 | 6/18/2023 |
3.0.183 | 190 | 6/18/2023 |
3.0.166 | 365 | 6/7/2023 |
3.0.156 | 359 | 5/31/2023 |
3.0.150 | 176 | 5/31/2023 |
3.0.147 | 194 | 5/31/2023 |
3.0.117 | 178 | 5/25/2023 |
3.0.114 | 447 | 5/4/2023 |
3.0.113 | 203 | 5/2/2023 |
3.0.109 | 214 | 4/28/2023 |
3.0.102 | 389 | 4/10/2023 |
3.0.97 | 226 | 4/9/2023 |
3.0.89 | 240 | 4/4/2023 |
3.0.84 | 359 | 4/3/2023 |
3.0.75 | 384 | 3/27/2023 |
3.0.72 | 306 | 3/25/2023 |
3.0.65 | 255 | 3/25/2023 |
3.0.56 | 241 | 3/25/2023 |
2.0.39 | 622 | 1/24/2023 |
2.0.38 | 694 | 1/9/2023 |
2.0.33 | 339 | 1/9/2023 |
2.0.32 | 335 | 1/9/2023 |
2.0.31 | 328 | 1/9/2023 |
2.0.26 | 363 | 12/14/2022 |
2.0.25 | 356 | 12/8/2022 |
2.0.24 | 350 | 12/8/2022 |
2.0.21 | 358 | 12/8/2022 |
2.0.12 | 1,236 | 11/1/2020 |
2.0.11 | 535 | 10/1/2020 |
2.0.10 | 605 | 9/1/2020 |
2.0.9 | 545 | 8/1/2020 |
2.0.8 | 686 | 7/1/2020 |
2.0.7 | 544 | 6/29/2020 |
1.0.58 | 651 | 6/1/2020 |
1.0.57 | 605 | 5/2/2020 |
1.0.56 | 600 | 5/2/2020 |
1.0.54 | 622 | 5/2/2020 |
1.0.52 | 564 | 5/2/2020 |
1.0.51 | 593 | 5/2/2020 |
1.0.50 | 604 | 5/2/2020 |
1.0.49 | 653 | 5/2/2020 |
1.0.48 | 588 | 5/2/2020 |
1.0.47 | 596 | 5/2/2020 |
1.0.46 | 609 | 5/1/2020 |
1.0.45 | 618 | 5/1/2020 |
1.0.44 | 593 | 5/1/2020 |
1.0.43 | 616 | 5/1/2020 |
1.0.42 | 583 | 5/1/2020 |
1.0.41 | 597 | 5/1/2020 |
1.0.40 | 620 | 5/1/2020 |
1.0.39 | 606 | 5/1/2020 |
1.0.38 | 607 | 5/1/2020 |
1.0.37 | 650 | 5/1/2020 |
1.0.36 | 585 | 5/1/2020 |
1.0.35 | 590 | 5/1/2020 |
1.0.34 | 594 | 5/1/2020 |
1.0.33 | 598 | 5/1/2020 |
1.0.32 | 562 | 5/1/2020 |
1.0.31 | 585 | 5/1/2020 |
1.0.30 | 564 | 5/1/2020 |
1.0.29 | 586 | 5/1/2020 |
1.0.28 | 577 | 5/1/2020 |
1.0.27 | 619 | 5/1/2020 |
1.0.26 | 641 | 5/1/2020 |
1.0.25 | 690 | 5/1/2020 |
1.0.24 | 617 | 5/1/2020 |
1.0.22 | 643 | 5/1/2020 |
1.0.21 | 574 | 4/24/2020 |
1.0.20 | 601 | 4/24/2020 |
1.0.19 | 578 | 4/24/2020 |
1.0.12 | 973 | 9/19/2018 |
1.0.9 | 953 | 8/16/2018 |
1.0.8 | 948 | 8/16/2018 |