CEPAberto 4.0.412
See the version list below for details.
dotnet add package CEPAberto --version 4.0.412
NuGet\Install-Package CEPAberto -Version 4.0.412
<PackageReference Include="CEPAberto" Version="4.0.412" />
paket add CEPAberto --version 4.0.412
#r "nuget: CEPAberto, 4.0.412"
// Install CEPAberto as a Cake Addin #addin nuget:?package=CEPAberto&version=4.0.412 // Install CEPAberto as a Cake Tool #tool nuget:?package=CEPAberto&version=4.0.412
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.563 | 32 | 10/3/2024 |
4.0.560 | 32 | 10/3/2024 |
4.0.557 | 35 | 10/3/2024 |
4.0.550 | 132 | 9/23/2024 |
4.0.547 | 63 | 9/23/2024 |
4.0.542 | 110 | 9/16/2024 |
4.0.539 | 83 | 9/16/2024 |
4.0.534 | 90 | 9/9/2024 |
4.0.531 | 83 | 9/9/2024 |
4.0.526 | 84 | 9/9/2024 |
4.0.519 | 65 | 9/9/2024 |
4.0.510 | 83 | 9/9/2024 |
4.0.499 | 125 | 9/2/2024 |
4.0.496 | 78 | 9/2/2024 |
4.0.491 | 87 | 8/27/2024 |
4.0.486 | 86 | 8/27/2024 |
4.0.481 | 85 | 8/27/2024 |
4.0.476 | 89 | 8/27/2024 |
4.0.471 | 89 | 8/27/2024 |
4.0.464 | 119 | 8/26/2024 |
4.0.453 | 121 | 8/24/2024 |
4.0.449 | 141 | 8/12/2024 |
4.0.446 | 73 | 8/5/2024 |
4.0.443 | 73 | 7/29/2024 |
4.0.440 | 105 | 7/22/2024 |
4.0.437 | 83 | 7/16/2024 |
4.0.434 | 82 | 7/16/2024 |
4.0.431 | 83 | 7/16/2024 |
4.0.426 | 80 | 7/16/2024 |
4.0.419 | 83 | 7/16/2024 |
4.0.412 | 90 | 7/16/2024 |
4.0.382 | 99 | 6/10/2024 |
4.0.375 | 104 | 6/3/2024 |
4.0.372 | 94 | 5/28/2024 |
4.0.369 | 88 | 5/28/2024 |
4.0.364 | 80 | 5/28/2024 |
4.0.357 | 100 | 5/28/2024 |
4.0.348 | 80 | 5/20/2024 |
4.0.345 | 77 | 5/20/2024 |
4.0.340 | 100 | 5/13/2024 |
4.0.337 | 122 | 5/6/2024 |
4.0.334 | 116 | 5/6/2024 |
4.0.331 | 108 | 4/30/2024 |
4.0.328 | 107 | 4/30/2024 |
4.0.323 | 107 | 4/30/2024 |
4.0.316 | 116 | 4/30/2024 |
4.0.313 | 91 | 4/29/2024 |
4.0.302 | 109 | 4/22/2024 |
4.0.299 | 107 | 4/22/2024 |
4.0.294 | 104 | 4/22/2024 |
4.0.291 | 89 | 4/22/2024 |
4.0.282 | 110 | 4/16/2024 |
4.0.279 | 101 | 4/16/2024 |
4.0.274 | 101 | 4/16/2024 |
4.0.267 | 109 | 4/16/2024 |
4.0.250 | 115 | 4/8/2024 |
4.0.247 | 86 | 4/8/2024 |
4.0.242 | 111 | 4/8/2024 |
4.0.235 | 106 | 3/25/2024 |
4.0.232 | 102 | 3/25/2024 |
4.0.227 | 111 | 3/25/2024 |
4.0.220 | 113 | 3/21/2024 |
4.0.210 | 124 | 2/26/2024 |
4.0.207 | 113 | 2/26/2024 |
4.0.202 | 108 | 2/26/2024 |
4.0.193 | 108 | 2/19/2024 |
4.0.186 | 112 | 2/19/2024 |
4.0.177 | 98 | 2/19/2024 |
4.0.160 | 111 | 2/14/2024 |
4.0.154 | 101 | 2/12/2024 |
4.0.151 | 91 | 2/12/2024 |
4.0.148 | 97 | 2/6/2024 |
4.0.145 | 103 | 2/5/2024 |
4.0.140 | 109 | 1/30/2024 |
4.0.135 | 96 | 1/29/2024 |
4.0.132 | 99 | 1/29/2024 |
4.0.127 | 97 | 1/29/2024 |
4.0.120 | 100 | 1/29/2024 |
4.0.112 | 117 | 1/22/2024 |
4.0.107 | 105 | 1/22/2024 |
4.0.104 | 110 | 1/22/2024 |
4.0.99 | 108 | 1/22/2024 |
4.0.90 | 117 | 1/16/2024 |
4.0.82 | 123 | 1/15/2024 |
4.0.77 | 115 | 1/15/2024 |
4.0.70 | 120 | 1/8/2024 |
4.0.67 | 113 | 1/8/2024 |
4.0.62 | 155 | 12/25/2023 |
4.0.59 | 125 | 12/25/2023 |
4.0.54 | 128 | 12/25/2023 |
4.0.47 | 116 | 12/25/2023 |
4.0.38 | 142 | 12/18/2023 |
4.0.35 | 119 | 12/18/2023 |
4.0.32 | 123 | 12/18/2023 |
4.0.25 | 108 | 12/18/2023 |
4.0.3 | 136 | 12/17/2023 |
3.0.467 | 132 | 12/14/2023 |
3.0.461 | 134 | 12/12/2023 |
3.0.458 | 145 | 12/11/2023 |
3.0.455 | 131 | 12/11/2023 |
3.0.452 | 159 | 12/11/2023 |
3.0.445 | 161 | 12/5/2023 |
3.0.440 | 142 | 12/5/2023 |
3.0.435 | 136 | 11/28/2023 |
3.0.432 | 130 | 11/28/2023 |
3.0.427 | 248 | 11/23/2023 |
3.0.424 | 138 | 11/21/2023 |
3.0.417 | 700 | 11/14/2023 |
3.0.411 | 115 | 11/14/2023 |
3.0.408 | 138 | 11/14/2023 |
3.0.400 | 159 | 11/10/2023 |
3.0.391 | 143 | 11/7/2023 |
3.0.388 | 140 | 11/7/2023 |
3.0.385 | 168 | 10/24/2023 |
3.0.382 | 147 | 10/17/2023 |
3.0.378 | 177 | 9/25/2023 |
3.0.373 | 158 | 9/24/2023 |
3.0.370 | 154 | 9/24/2023 |
3.0.365 | 155 | 9/24/2023 |
3.0.356 | 169 | 9/17/2023 |
3.0.353 | 154 | 9/17/2023 |
3.0.348 | 191 | 9/13/2023 |
3.0.338 | 182 | 9/13/2023 |
3.0.335 | 173 | 9/13/2023 |
3.0.332 | 173 | 9/13/2023 |
3.0.322 | 339 | 8/28/2023 |
3.0.314 | 358 | 8/13/2023 |
3.0.311 | 170 | 8/13/2023 |
3.0.308 | 191 | 8/13/2023 |
3.0.301 | 194 | 8/13/2023 |
3.0.291 | 269 | 8/3/2023 |
3.0.288 | 210 | 8/2/2023 |
3.0.283 | 236 | 7/28/2023 |
3.0.280 | 204 | 7/25/2023 |
3.0.277 | 193 | 7/25/2023 |
3.0.269 | 257 | 7/19/2023 |
3.0.266 | 172 | 7/19/2023 |
3.0.212 | 354 | 6/27/2023 |
3.0.209 | 238 | 6/26/2023 |
3.0.202 | 260 | 6/19/2023 |
3.0.193 | 190 | 6/18/2023 |
3.0.188 | 210 | 6/18/2023 |
3.0.183 | 189 | 6/18/2023 |
3.0.166 | 364 | 6/7/2023 |
3.0.156 | 358 | 5/31/2023 |
3.0.150 | 175 | 5/31/2023 |
3.0.147 | 193 | 5/31/2023 |
3.0.117 | 177 | 5/25/2023 |
3.0.114 | 446 | 5/4/2023 |
3.0.113 | 202 | 5/2/2023 |
3.0.109 | 213 | 4/28/2023 |
3.0.102 | 388 | 4/10/2023 |
3.0.97 | 225 | 4/9/2023 |
3.0.89 | 239 | 4/4/2023 |
3.0.84 | 358 | 4/3/2023 |
3.0.75 | 383 | 3/27/2023 |
3.0.72 | 305 | 3/25/2023 |
3.0.65 | 254 | 3/25/2023 |
3.0.56 | 240 | 3/25/2023 |
2.0.39 | 621 | 1/24/2023 |
2.0.38 | 693 | 1/9/2023 |
2.0.33 | 338 | 1/9/2023 |
2.0.32 | 334 | 1/9/2023 |
2.0.31 | 327 | 1/9/2023 |
2.0.26 | 362 | 12/14/2022 |
2.0.25 | 355 | 12/8/2022 |
2.0.24 | 347 | 12/8/2022 |
2.0.21 | 357 | 12/8/2022 |
2.0.12 | 1,233 | 11/1/2020 |
2.0.11 | 534 | 10/1/2020 |
2.0.10 | 602 | 9/1/2020 |
2.0.9 | 544 | 8/1/2020 |
2.0.8 | 684 | 7/1/2020 |
2.0.7 | 542 | 6/29/2020 |
1.0.58 | 649 | 6/1/2020 |
1.0.57 | 603 | 5/2/2020 |
1.0.56 | 598 | 5/2/2020 |
1.0.54 | 620 | 5/2/2020 |
1.0.52 | 562 | 5/2/2020 |
1.0.51 | 591 | 5/2/2020 |
1.0.50 | 602 | 5/2/2020 |
1.0.49 | 651 | 5/2/2020 |
1.0.48 | 586 | 5/2/2020 |
1.0.47 | 594 | 5/2/2020 |
1.0.46 | 607 | 5/1/2020 |
1.0.45 | 616 | 5/1/2020 |
1.0.44 | 591 | 5/1/2020 |
1.0.43 | 614 | 5/1/2020 |
1.0.42 | 581 | 5/1/2020 |
1.0.41 | 595 | 5/1/2020 |
1.0.40 | 618 | 5/1/2020 |
1.0.39 | 602 | 5/1/2020 |
1.0.38 | 605 | 5/1/2020 |
1.0.37 | 648 | 5/1/2020 |
1.0.36 | 583 | 5/1/2020 |
1.0.35 | 588 | 5/1/2020 |
1.0.34 | 592 | 5/1/2020 |
1.0.33 | 594 | 5/1/2020 |
1.0.32 | 560 | 5/1/2020 |
1.0.31 | 583 | 5/1/2020 |
1.0.30 | 562 | 5/1/2020 |
1.0.29 | 584 | 5/1/2020 |
1.0.28 | 575 | 5/1/2020 |
1.0.27 | 617 | 5/1/2020 |
1.0.26 | 639 | 5/1/2020 |
1.0.25 | 686 | 5/1/2020 |
1.0.24 | 615 | 5/1/2020 |
1.0.22 | 641 | 5/1/2020 |
1.0.21 | 572 | 4/24/2020 |
1.0.20 | 599 | 4/24/2020 |
1.0.19 | 575 | 4/24/2020 |
1.0.12 | 969 | 9/19/2018 |
1.0.9 | 951 | 8/16/2018 |
1.0.8 | 946 | 8/16/2018 |