CEPAberto 4.0.446

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 4.0.446                
NuGet\Install-Package CEPAberto -Version 4.0.446                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CEPAberto" Version="4.0.446" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CEPAberto --version 4.0.446                
#r "nuget: CEPAberto, 4.0.446"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=4.0.446

// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=4.0.446                

CEP Aberto SDK .NET

CEP Aberto API wrapper written in C# (.NET).

Implements all V3 features

GitHub license time tracker

CEPAberto

CI/CD

Build status Last commit Tests Coverage Code Smells LOC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
CEPAberto CEPAberto NuGet Version CEPAberto NuGet Downloads

Features

This client supports the following operations/features of the API V3:

  1. Get data based on postal code (CEP).
  2. Get data of a nearest geo location (lat/lon) (Max of 10km).
  3. Get data based on state initials (UF), city, neighborhood and street/address.
  4. Get list of cities of a state based on state initials.
  5. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.534 64 9/9/2024
4.0.531 56 9/9/2024
4.0.526 58 9/9/2024
4.0.519 53 9/9/2024
4.0.510 57 9/9/2024
4.0.499 73 9/2/2024
4.0.496 56 9/2/2024
4.0.491 70 8/27/2024
4.0.486 64 8/27/2024
4.0.481 67 8/27/2024
4.0.476 70 8/27/2024
4.0.471 67 8/27/2024
4.0.464 100 8/26/2024
4.0.453 99 8/24/2024
4.0.449 119 8/12/2024
4.0.446 56 8/5/2024
4.0.443 54 7/29/2024
4.0.440 85 7/22/2024
4.0.437 66 7/16/2024
4.0.434 66 7/16/2024
4.0.431 64 7/16/2024
4.0.426 63 7/16/2024
4.0.419 63 7/16/2024
4.0.412 71 7/16/2024
4.0.382 78 6/10/2024
4.0.375 85 6/3/2024
4.0.372 74 5/28/2024
4.0.369 73 5/28/2024
4.0.364 61 5/28/2024
4.0.357 80 5/28/2024
4.0.348 64 5/20/2024
4.0.345 60 5/20/2024
4.0.340 84 5/13/2024
4.0.337 103 5/6/2024
4.0.334 101 5/6/2024
4.0.331 93 4/30/2024
4.0.328 91 4/30/2024
4.0.323 92 4/30/2024
4.0.316 102 4/30/2024
4.0.313 77 4/29/2024
4.0.302 90 4/22/2024
4.0.299 90 4/22/2024
4.0.294 88 4/22/2024
4.0.291 86 4/22/2024
4.0.282 93 4/16/2024
4.0.279 87 4/16/2024
4.0.274 86 4/16/2024
4.0.267 93 4/16/2024
4.0.250 99 4/8/2024
4.0.247 85 4/8/2024
4.0.242 83 4/8/2024
4.0.235 93 3/25/2024
4.0.232 87 3/25/2024
4.0.227 92 3/25/2024
4.0.220 99 3/21/2024
4.0.210 107 2/26/2024
4.0.207 93 2/26/2024
4.0.202 90 2/26/2024
4.0.193 93 2/19/2024
4.0.186 93 2/19/2024
4.0.177 84 2/19/2024
4.0.160 93 2/14/2024
4.0.154 83 2/12/2024
4.0.151 76 2/12/2024
4.0.148 82 2/6/2024
4.0.145 88 2/5/2024
4.0.140 95 1/30/2024
4.0.135 80 1/29/2024
4.0.132 79 1/29/2024
4.0.127 82 1/29/2024
4.0.120 82 1/29/2024
4.0.112 99 1/22/2024
4.0.107 89 1/22/2024
4.0.104 78 1/22/2024
4.0.99 93 1/22/2024
4.0.90 92 1/16/2024
4.0.82 90 1/15/2024
4.0.77 96 1/15/2024
4.0.70 104 1/8/2024
4.0.67 99 1/8/2024
4.0.62 137 12/25/2023
4.0.59 107 12/25/2023
4.0.54 110 12/25/2023
4.0.47 102 12/25/2023
4.0.38 127 12/18/2023
4.0.35 107 12/18/2023
4.0.32 108 12/18/2023
4.0.25 92 12/18/2023
4.0.3 123 12/17/2023
3.0.467 114 12/14/2023
3.0.461 116 12/12/2023
3.0.458 128 12/11/2023
3.0.455 112 12/11/2023
3.0.452 123 12/11/2023
3.0.445 146 12/5/2023
3.0.440 127 12/5/2023
3.0.435 134 11/28/2023
3.0.432 116 11/28/2023
3.0.427 226 11/23/2023
3.0.424 119 11/21/2023
3.0.417 682 11/14/2023
3.0.411 101 11/14/2023
3.0.408 121 11/14/2023
3.0.400 144 11/10/2023
3.0.391 127 11/7/2023
3.0.388 126 11/7/2023
3.0.385 155 10/24/2023
3.0.382 132 10/17/2023
3.0.378 161 9/25/2023
3.0.373 141 9/24/2023
3.0.370 138 9/24/2023
3.0.365 139 9/24/2023
3.0.356 155 9/17/2023
3.0.353 138 9/17/2023
3.0.348 174 9/13/2023
3.0.338 167 9/13/2023
3.0.335 155 9/13/2023
3.0.332 157 9/13/2023
3.0.322 325 8/28/2023
3.0.314 345 8/13/2023
3.0.311 152 8/13/2023
3.0.308 171 8/13/2023
3.0.301 177 8/13/2023
3.0.291 252 8/3/2023
3.0.288 192 8/2/2023
3.0.283 221 7/28/2023
3.0.280 185 7/25/2023
3.0.277 176 7/25/2023
3.0.269 239 7/19/2023
3.0.266 157 7/19/2023
3.0.212 337 6/27/2023
3.0.209 222 6/26/2023
3.0.202 241 6/19/2023
3.0.193 175 6/18/2023
3.0.188 184 6/18/2023
3.0.183 173 6/18/2023
3.0.166 345 6/7/2023
3.0.156 342 5/31/2023
3.0.150 160 5/31/2023
3.0.147 176 5/31/2023
3.0.117 161 5/25/2023
3.0.114 431 5/4/2023
3.0.113 183 5/2/2023
3.0.109 199 4/28/2023
3.0.102 375 4/10/2023
3.0.97 206 4/9/2023
3.0.89 221 4/4/2023
3.0.84 344 4/3/2023
3.0.75 368 3/27/2023
3.0.72 288 3/25/2023
3.0.65 236 3/25/2023
3.0.56 238 3/25/2023
2.0.39 607 1/24/2023
2.0.38 681 1/9/2023
2.0.33 325 1/9/2023
2.0.32 320 1/9/2023
2.0.31 312 1/9/2023
2.0.26 348 12/14/2022
2.0.25 340 12/8/2022
2.0.24 332 12/8/2022
2.0.21 341 12/8/2022
2.0.12 1,209 11/1/2020
2.0.11 516 10/1/2020
2.0.10 584 9/1/2020
2.0.9 528 8/1/2020
2.0.8 682 7/1/2020
2.0.7 506 6/29/2020
1.0.58 632 6/1/2020
1.0.57 587 5/2/2020
1.0.56 581 5/2/2020
1.0.54 600 5/2/2020
1.0.52 546 5/2/2020
1.0.51 573 5/2/2020
1.0.50 588 5/2/2020
1.0.49 635 5/2/2020
1.0.48 569 5/2/2020
1.0.47 574 5/2/2020
1.0.46 590 5/1/2020
1.0.45 597 5/1/2020
1.0.44 575 5/1/2020
1.0.43 596 5/1/2020
1.0.42 562 5/1/2020
1.0.41 572 5/1/2020
1.0.40 600 5/1/2020
1.0.39 578 5/1/2020
1.0.38 586 5/1/2020
1.0.37 633 5/1/2020
1.0.36 558 5/1/2020
1.0.35 573 5/1/2020
1.0.34 572 5/1/2020
1.0.33 578 5/1/2020
1.0.32 544 5/1/2020
1.0.31 563 5/1/2020
1.0.30 544 5/1/2020
1.0.29 566 5/1/2020
1.0.28 557 5/1/2020
1.0.27 586 5/1/2020
1.0.26 617 5/1/2020
1.0.25 668 5/1/2020
1.0.24 597 5/1/2020
1.0.22 625 5/1/2020
1.0.21 555 4/24/2020
1.0.20 582 4/24/2020
1.0.19 557 4/24/2020
1.0.12 953 9/19/2018
1.0.9 937 8/16/2018
1.0.8 928 8/16/2018