CEPAberto 4.0.331
See the version list below for details.
dotnet add package CEPAberto --version 4.0.331
NuGet\Install-Package CEPAberto -Version 4.0.331
<PackageReference Include="CEPAberto" Version="4.0.331" />
paket add CEPAberto --version 4.0.331
#r "nuget: CEPAberto, 4.0.331"
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=4.0.331
// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=4.0.331
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.525)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- GuiStracini.SDKBuilder (>= 3.0.525)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- GuiStracini.SDKBuilder (>= 3.0.525)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- GuiStracini.SDKBuilder (>= 3.0.525)
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- GuiStracini.SDKBuilder (>= 3.0.525)
- 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.348 | 36 | 5/20/2024 |
4.0.345 | 36 | 5/20/2024 |
4.0.340 | 75 | 5/13/2024 |
4.0.337 | 89 | 5/6/2024 |
4.0.334 | 84 | 5/6/2024 |
4.0.331 | 81 | 4/30/2024 |
4.0.328 | 77 | 4/30/2024 |
4.0.323 | 79 | 4/30/2024 |
4.0.316 | 87 | 4/30/2024 |
4.0.313 | 65 | 4/29/2024 |
4.0.302 | 79 | 4/22/2024 |
4.0.299 | 79 | 4/22/2024 |
4.0.294 | 79 | 4/22/2024 |
4.0.291 | 77 | 4/22/2024 |
4.0.282 | 83 | 4/16/2024 |
4.0.279 | 78 | 4/16/2024 |
4.0.274 | 74 | 4/16/2024 |
4.0.267 | 85 | 4/16/2024 |
4.0.250 | 90 | 4/8/2024 |
4.0.247 | 76 | 4/8/2024 |
4.0.242 | 73 | 4/8/2024 |
4.0.235 | 83 | 3/25/2024 |
4.0.232 | 78 | 3/25/2024 |
4.0.227 | 83 | 3/25/2024 |
4.0.220 | 91 | 3/21/2024 |
4.0.210 | 94 | 2/26/2024 |
4.0.207 | 84 | 2/26/2024 |
4.0.202 | 79 | 2/26/2024 |
4.0.193 | 84 | 2/19/2024 |
4.0.186 | 82 | 2/19/2024 |
4.0.177 | 75 | 2/19/2024 |
4.0.160 | 83 | 2/14/2024 |
4.0.154 | 74 | 2/12/2024 |
4.0.151 | 67 | 2/12/2024 |
4.0.148 | 74 | 2/6/2024 |
4.0.145 | 77 | 2/5/2024 |
4.0.140 | 86 | 1/30/2024 |
4.0.135 | 72 | 1/29/2024 |
4.0.132 | 71 | 1/29/2024 |
4.0.127 | 73 | 1/29/2024 |
4.0.120 | 74 | 1/29/2024 |
4.0.112 | 88 | 1/22/2024 |
4.0.107 | 79 | 1/22/2024 |
4.0.104 | 67 | 1/22/2024 |
4.0.99 | 82 | 1/22/2024 |
4.0.90 | 81 | 1/16/2024 |
4.0.82 | 78 | 1/15/2024 |
4.0.77 | 84 | 1/15/2024 |
4.0.70 | 95 | 1/8/2024 |
4.0.67 | 89 | 1/8/2024 |
4.0.62 | 128 | 12/25/2023 |
4.0.59 | 97 | 12/25/2023 |
4.0.54 | 101 | 12/25/2023 |
4.0.47 | 91 | 12/25/2023 |
4.0.38 | 112 | 12/18/2023 |
4.0.35 | 97 | 12/18/2023 |
4.0.32 | 100 | 12/18/2023 |
4.0.25 | 86 | 12/18/2023 |
4.0.3 | 113 | 12/17/2023 |
3.0.467 | 106 | 12/14/2023 |
3.0.461 | 110 | 12/12/2023 |
3.0.458 | 122 | 12/11/2023 |
3.0.455 | 106 | 12/11/2023 |
3.0.452 | 116 | 12/11/2023 |
3.0.445 | 140 | 12/5/2023 |
3.0.440 | 121 | 12/5/2023 |
3.0.435 | 128 | 11/28/2023 |
3.0.432 | 110 | 11/28/2023 |
3.0.427 | 194 | 11/23/2023 |
3.0.424 | 113 | 11/21/2023 |
3.0.417 | 184 | 11/14/2023 |
3.0.411 | 95 | 11/14/2023 |
3.0.408 | 115 | 11/14/2023 |
3.0.400 | 136 | 11/10/2023 |
3.0.391 | 119 | 11/7/2023 |
3.0.388 | 118 | 11/7/2023 |
3.0.385 | 147 | 10/24/2023 |
3.0.382 | 126 | 10/17/2023 |
3.0.378 | 154 | 9/25/2023 |
3.0.373 | 134 | 9/24/2023 |
3.0.370 | 128 | 9/24/2023 |
3.0.365 | 132 | 9/24/2023 |
3.0.356 | 148 | 9/17/2023 |
3.0.353 | 131 | 9/17/2023 |
3.0.348 | 167 | 9/13/2023 |
3.0.338 | 160 | 9/13/2023 |
3.0.335 | 148 | 9/13/2023 |
3.0.332 | 150 | 9/13/2023 |
3.0.322 | 318 | 8/28/2023 |
3.0.314 | 340 | 8/13/2023 |
3.0.311 | 147 | 8/13/2023 |
3.0.308 | 166 | 8/13/2023 |
3.0.301 | 172 | 8/13/2023 |
3.0.291 | 247 | 8/3/2023 |
3.0.288 | 187 | 8/2/2023 |
3.0.283 | 215 | 7/28/2023 |
3.0.280 | 179 | 7/25/2023 |
3.0.277 | 170 | 7/25/2023 |
3.0.269 | 233 | 7/19/2023 |
3.0.266 | 151 | 7/19/2023 |
3.0.212 | 331 | 6/27/2023 |
3.0.209 | 216 | 6/26/2023 |
3.0.202 | 235 | 6/19/2023 |
3.0.193 | 169 | 6/18/2023 |
3.0.188 | 177 | 6/18/2023 |
3.0.183 | 167 | 6/18/2023 |
3.0.166 | 339 | 6/7/2023 |
3.0.156 | 337 | 5/31/2023 |
3.0.150 | 155 | 5/31/2023 |
3.0.147 | 171 | 5/31/2023 |
3.0.117 | 156 | 5/25/2023 |
3.0.114 | 425 | 5/4/2023 |
3.0.113 | 177 | 5/2/2023 |
3.0.109 | 191 | 4/28/2023 |
3.0.102 | 368 | 4/10/2023 |
3.0.97 | 199 | 4/9/2023 |
3.0.89 | 214 | 4/4/2023 |
3.0.84 | 337 | 4/3/2023 |
3.0.75 | 363 | 3/27/2023 |
3.0.72 | 283 | 3/25/2023 |
3.0.65 | 231 | 3/25/2023 |
3.0.56 | 233 | 3/25/2023 |
2.0.39 | 602 | 1/24/2023 |
2.0.38 | 675 | 1/9/2023 |
2.0.33 | 319 | 1/9/2023 |
2.0.32 | 314 | 1/9/2023 |
2.0.31 | 306 | 1/9/2023 |
2.0.26 | 341 | 12/14/2022 |
2.0.25 | 328 | 12/8/2022 |
2.0.24 | 327 | 12/8/2022 |
2.0.21 | 335 | 12/8/2022 |
2.0.12 | 1,202 | 11/1/2020 |
2.0.11 | 507 | 10/1/2020 |
2.0.10 | 579 | 9/1/2020 |
2.0.9 | 521 | 8/1/2020 |
2.0.8 | 675 | 7/1/2020 |
2.0.7 | 500 | 6/29/2020 |
1.0.58 | 625 | 6/1/2020 |
1.0.57 | 583 | 5/2/2020 |
1.0.56 | 575 | 5/2/2020 |
1.0.54 | 596 | 5/2/2020 |
1.0.52 | 540 | 5/2/2020 |
1.0.51 | 567 | 5/2/2020 |
1.0.50 | 583 | 5/2/2020 |
1.0.49 | 630 | 5/2/2020 |
1.0.48 | 564 | 5/2/2020 |
1.0.47 | 568 | 5/2/2020 |
1.0.46 | 584 | 5/1/2020 |
1.0.45 | 587 | 5/1/2020 |
1.0.44 | 571 | 5/1/2020 |
1.0.43 | 590 | 5/1/2020 |
1.0.42 | 558 | 5/1/2020 |
1.0.41 | 568 | 5/1/2020 |
1.0.40 | 594 | 5/1/2020 |
1.0.39 | 574 | 5/1/2020 |
1.0.38 | 582 | 5/1/2020 |
1.0.37 | 629 | 5/1/2020 |
1.0.36 | 554 | 5/1/2020 |
1.0.35 | 569 | 5/1/2020 |
1.0.34 | 568 | 5/1/2020 |
1.0.33 | 574 | 5/1/2020 |
1.0.32 | 539 | 5/1/2020 |
1.0.31 | 557 | 5/1/2020 |
1.0.30 | 538 | 5/1/2020 |
1.0.29 | 562 | 5/1/2020 |
1.0.28 | 553 | 5/1/2020 |
1.0.27 | 582 | 5/1/2020 |
1.0.26 | 613 | 5/1/2020 |
1.0.25 | 664 | 5/1/2020 |
1.0.24 | 593 | 5/1/2020 |
1.0.22 | 621 | 5/1/2020 |
1.0.21 | 549 | 4/24/2020 |
1.0.20 | 576 | 4/24/2020 |
1.0.19 | 553 | 4/24/2020 |
1.0.12 | 945 | 9/19/2018 |
1.0.9 | 930 | 8/16/2018 |
1.0.8 | 922 | 8/16/2018 |