CEPAberto 4.0.382
See the version list below for details.
dotnet add package CEPAberto --version 4.0.382
NuGet\Install-Package CEPAberto -Version 4.0.382
<PackageReference Include="CEPAberto" Version="4.0.382" />
paket add CEPAberto --version 4.0.382
#r "nuget: CEPAberto, 4.0.382"
// Install CEPAberto as a Cake Addin #addin nuget:?package=CEPAberto&version=4.0.382 // Install CEPAberto as a Cake Tool #tool nuget:?package=CEPAberto&version=4.0.382
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 is compatible. 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.551)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- GuiStracini.SDKBuilder (>= 3.0.551)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- GuiStracini.SDKBuilder (>= 3.0.551)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- GuiStracini.SDKBuilder (>= 3.0.551)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- GuiStracini.SDKBuilder (>= 3.0.551)
- 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.491 | 38 | 8/27/2024 |
4.0.486 | 34 | 8/27/2024 |
4.0.481 | 36 | 8/27/2024 |
4.0.476 | 39 | 8/27/2024 |
4.0.471 | 38 | 8/27/2024 |
4.0.464 | 82 | 8/26/2024 |
4.0.453 | 76 | 8/24/2024 |
4.0.449 | 98 | 8/12/2024 |
4.0.446 | 52 | 8/5/2024 |
4.0.443 | 52 | 7/29/2024 |
4.0.440 | 84 | 7/22/2024 |
4.0.437 | 65 | 7/16/2024 |
4.0.434 | 65 | 7/16/2024 |
4.0.431 | 63 | 7/16/2024 |
4.0.426 | 62 | 7/16/2024 |
4.0.419 | 62 | 7/16/2024 |
4.0.412 | 70 | 7/16/2024 |
4.0.382 | 77 | 6/10/2024 |
4.0.375 | 84 | 6/3/2024 |
4.0.372 | 73 | 5/28/2024 |
4.0.369 | 72 | 5/28/2024 |
4.0.364 | 60 | 5/28/2024 |
4.0.357 | 78 | 5/28/2024 |
4.0.348 | 62 | 5/20/2024 |
4.0.345 | 59 | 5/20/2024 |
4.0.340 | 82 | 5/13/2024 |
4.0.337 | 100 | 5/6/2024 |
4.0.334 | 99 | 5/6/2024 |
4.0.331 | 91 | 4/30/2024 |
4.0.328 | 88 | 4/30/2024 |
4.0.323 | 89 | 4/30/2024 |
4.0.316 | 99 | 4/30/2024 |
4.0.313 | 73 | 4/29/2024 |
4.0.302 | 85 | 4/22/2024 |
4.0.299 | 85 | 4/22/2024 |
4.0.294 | 85 | 4/22/2024 |
4.0.291 | 83 | 4/22/2024 |
4.0.282 | 90 | 4/16/2024 |
4.0.279 | 83 | 4/16/2024 |
4.0.274 | 83 | 4/16/2024 |
4.0.267 | 90 | 4/16/2024 |
4.0.250 | 96 | 4/8/2024 |
4.0.247 | 81 | 4/8/2024 |
4.0.242 | 79 | 4/8/2024 |
4.0.235 | 90 | 3/25/2024 |
4.0.232 | 84 | 3/25/2024 |
4.0.227 | 89 | 3/25/2024 |
4.0.220 | 97 | 3/21/2024 |
4.0.210 | 105 | 2/26/2024 |
4.0.207 | 91 | 2/26/2024 |
4.0.202 | 87 | 2/26/2024 |
4.0.193 | 91 | 2/19/2024 |
4.0.186 | 91 | 2/19/2024 |
4.0.177 | 82 | 2/19/2024 |
4.0.160 | 90 | 2/14/2024 |
4.0.154 | 80 | 2/12/2024 |
4.0.151 | 73 | 2/12/2024 |
4.0.148 | 79 | 2/6/2024 |
4.0.145 | 81 | 2/5/2024 |
4.0.140 | 92 | 1/30/2024 |
4.0.135 | 77 | 1/29/2024 |
4.0.132 | 76 | 1/29/2024 |
4.0.127 | 79 | 1/29/2024 |
4.0.120 | 79 | 1/29/2024 |
4.0.112 | 95 | 1/22/2024 |
4.0.107 | 86 | 1/22/2024 |
4.0.104 | 74 | 1/22/2024 |
4.0.99 | 89 | 1/22/2024 |
4.0.90 | 88 | 1/16/2024 |
4.0.82 | 85 | 1/15/2024 |
4.0.77 | 93 | 1/15/2024 |
4.0.70 | 101 | 1/8/2024 |
4.0.67 | 96 | 1/8/2024 |
4.0.62 | 134 | 12/25/2023 |
4.0.59 | 104 | 12/25/2023 |
4.0.54 | 106 | 12/25/2023 |
4.0.47 | 98 | 12/25/2023 |
4.0.38 | 123 | 12/18/2023 |
4.0.35 | 103 | 12/18/2023 |
4.0.32 | 105 | 12/18/2023 |
4.0.25 | 89 | 12/18/2023 |
4.0.3 | 120 | 12/17/2023 |
3.0.467 | 111 | 12/14/2023 |
3.0.461 | 113 | 12/12/2023 |
3.0.458 | 125 | 12/11/2023 |
3.0.455 | 109 | 12/11/2023 |
3.0.452 | 120 | 12/11/2023 |
3.0.445 | 143 | 12/5/2023 |
3.0.440 | 124 | 12/5/2023 |
3.0.435 | 131 | 11/28/2023 |
3.0.432 | 113 | 11/28/2023 |
3.0.427 | 223 | 11/23/2023 |
3.0.424 | 116 | 11/21/2023 |
3.0.417 | 679 | 11/14/2023 |
3.0.411 | 98 | 11/14/2023 |
3.0.408 | 118 | 11/14/2023 |
3.0.400 | 139 | 11/10/2023 |
3.0.391 | 122 | 11/7/2023 |
3.0.388 | 121 | 11/7/2023 |
3.0.385 | 150 | 10/24/2023 |
3.0.382 | 129 | 10/17/2023 |
3.0.378 | 156 | 9/25/2023 |
3.0.373 | 136 | 9/24/2023 |
3.0.370 | 130 | 9/24/2023 |
3.0.365 | 134 | 9/24/2023 |
3.0.356 | 150 | 9/17/2023 |
3.0.353 | 133 | 9/17/2023 |
3.0.348 | 169 | 9/13/2023 |
3.0.338 | 162 | 9/13/2023 |
3.0.335 | 150 | 9/13/2023 |
3.0.332 | 152 | 9/13/2023 |
3.0.322 | 320 | 8/28/2023 |
3.0.314 | 342 | 8/13/2023 |
3.0.311 | 149 | 8/13/2023 |
3.0.308 | 168 | 8/13/2023 |
3.0.301 | 174 | 8/13/2023 |
3.0.291 | 249 | 8/3/2023 |
3.0.288 | 189 | 8/2/2023 |
3.0.283 | 218 | 7/28/2023 |
3.0.280 | 182 | 7/25/2023 |
3.0.277 | 173 | 7/25/2023 |
3.0.269 | 236 | 7/19/2023 |
3.0.266 | 154 | 7/19/2023 |
3.0.212 | 334 | 6/27/2023 |
3.0.209 | 219 | 6/26/2023 |
3.0.202 | 238 | 6/19/2023 |
3.0.193 | 172 | 6/18/2023 |
3.0.188 | 181 | 6/18/2023 |
3.0.183 | 170 | 6/18/2023 |
3.0.166 | 342 | 6/7/2023 |
3.0.156 | 339 | 5/31/2023 |
3.0.150 | 157 | 5/31/2023 |
3.0.147 | 173 | 5/31/2023 |
3.0.117 | 158 | 5/25/2023 |
3.0.114 | 428 | 5/4/2023 |
3.0.113 | 179 | 5/2/2023 |
3.0.109 | 195 | 4/28/2023 |
3.0.102 | 372 | 4/10/2023 |
3.0.97 | 203 | 4/9/2023 |
3.0.89 | 218 | 4/4/2023 |
3.0.84 | 341 | 4/3/2023 |
3.0.75 | 365 | 3/27/2023 |
3.0.72 | 285 | 3/25/2023 |
3.0.65 | 233 | 3/25/2023 |
3.0.56 | 235 | 3/25/2023 |
2.0.39 | 606 | 1/24/2023 |
2.0.38 | 680 | 1/9/2023 |
2.0.33 | 324 | 1/9/2023 |
2.0.32 | 319 | 1/9/2023 |
2.0.31 | 311 | 1/9/2023 |
2.0.26 | 347 | 12/14/2022 |
2.0.25 | 339 | 12/8/2022 |
2.0.24 | 331 | 12/8/2022 |
2.0.21 | 340 | 12/8/2022 |
2.0.12 | 1,208 | 11/1/2020 |
2.0.11 | 515 | 10/1/2020 |
2.0.10 | 583 | 9/1/2020 |
2.0.9 | 527 | 8/1/2020 |
2.0.8 | 681 | 7/1/2020 |
2.0.7 | 505 | 6/29/2020 |
1.0.58 | 631 | 6/1/2020 |
1.0.57 | 586 | 5/2/2020 |
1.0.56 | 580 | 5/2/2020 |
1.0.54 | 599 | 5/2/2020 |
1.0.52 | 545 | 5/2/2020 |
1.0.51 | 572 | 5/2/2020 |
1.0.50 | 587 | 5/2/2020 |
1.0.49 | 634 | 5/2/2020 |
1.0.48 | 568 | 5/2/2020 |
1.0.47 | 573 | 5/2/2020 |
1.0.46 | 589 | 5/1/2020 |
1.0.45 | 596 | 5/1/2020 |
1.0.44 | 574 | 5/1/2020 |
1.0.43 | 595 | 5/1/2020 |
1.0.42 | 561 | 5/1/2020 |
1.0.41 | 571 | 5/1/2020 |
1.0.40 | 599 | 5/1/2020 |
1.0.39 | 577 | 5/1/2020 |
1.0.38 | 585 | 5/1/2020 |
1.0.37 | 632 | 5/1/2020 |
1.0.36 | 557 | 5/1/2020 |
1.0.35 | 572 | 5/1/2020 |
1.0.34 | 571 | 5/1/2020 |
1.0.33 | 577 | 5/1/2020 |
1.0.32 | 543 | 5/1/2020 |
1.0.31 | 562 | 5/1/2020 |
1.0.30 | 543 | 5/1/2020 |
1.0.29 | 565 | 5/1/2020 |
1.0.28 | 556 | 5/1/2020 |
1.0.27 | 585 | 5/1/2020 |
1.0.26 | 616 | 5/1/2020 |
1.0.25 | 667 | 5/1/2020 |
1.0.24 | 596 | 5/1/2020 |
1.0.22 | 624 | 5/1/2020 |
1.0.21 | 554 | 4/24/2020 |
1.0.20 | 581 | 4/24/2020 |
1.0.19 | 556 | 4/24/2020 |
1.0.12 | 952 | 9/19/2018 |
1.0.9 | 936 | 8/16/2018 |
1.0.8 | 927 | 8/16/2018 |