CEPAberto 4.0.746

dotnet add package CEPAberto --version 4.0.746
                    
NuGet\Install-Package CEPAberto -Version 4.0.746
                    
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.746" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CEPAberto" Version="4.0.746" />
                    
Directory.Packages.props
<PackageReference Include="CEPAberto" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CEPAberto --version 4.0.746
                    
#r "nuget: CEPAberto, 4.0.746"
                    
#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.
#addin nuget:?package=CEPAberto&version=4.0.746
                    
Install CEPAberto as a Cake Addin
#tool nuget:?package=CEPAberto&version=4.0.746
                    
Install CEPAberto as a Cake Tool

CEP Aberto SDK .NET

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

Implements all V3 features

GitHub license time tracker DeepSource

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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.746 460 13 days ago
4.0.743 133 21 days ago
4.0.740 130 a month ago
4.0.737 134 a month ago
4.0.732 118 a month ago
4.0.729 93 a month ago
4.0.726 95 2 months ago
4.0.720 86 2 months ago
4.0.712 87 2 months ago
4.0.707 100 2 months ago
4.0.704 97 2 months ago
4.0.699 85 2 months ago
4.0.692 98 2 months ago
4.0.689 84 2 months ago
4.0.686 82 2 months ago
4.0.683 85 2 months ago
4.0.678 85 3 months ago
4.0.675 86 3 months ago
4.0.670 88 3 months ago
4.0.667 70 3 months ago
4.0.662 67 3 months ago
4.0.657 73 3 months ago
4.0.654 98 3 months ago
4.0.651 92 3 months ago
4.0.646 96 3 months ago
4.0.639 89 3 months ago
4.0.636 86 4 months ago
4.0.633 87 4 months ago
4.0.628 103 4 months ago
4.0.625 92 4 months ago
4.0.620 97 4 months ago
4.0.617 91 4 months ago
4.0.612 90 4 months ago
4.0.609 98 4 months ago
4.0.606 78 4 months ago
4.0.601 86 4 months ago
4.0.594 94 5 months ago
4.0.591 101 5 months ago
4.0.588 96 5 months ago
4.0.585 110 5 months ago
4.0.582 100 5 months ago
4.0.577 94 6 months ago
4.0.574 103 6 months ago
4.0.569 220 6 months ago
4.0.566 101 6 months ago
4.0.563 97 6 months ago
4.0.560 94 6 months ago
4.0.557 100 6 months ago
4.0.550 451 7 months ago
4.0.547 91 7 months ago
4.0.542 143 7 months ago
4.0.539 113 7 months ago
4.0.534 116 7 months ago
4.0.531 109 7 months ago
4.0.526 110 7 months ago
4.0.519 93 7 months ago
4.0.510 112 7 months ago
4.0.499 151 7 months ago
4.0.496 105 7 months ago
4.0.491 108 7 months ago
4.0.486 108 7 months ago
4.0.481 103 7 months ago
4.0.476 109 7 months ago
4.0.471 110 7 months ago
4.0.464 139 7 months ago
4.0.453 143 7 months ago
4.0.449 166 8 months ago
4.0.446 94 8 months ago
4.0.443 91 8 months ago
4.0.440 127 9 months ago
4.0.437 105 9 months ago
4.0.434 103 9 months ago
4.0.431 110 9 months ago
4.0.426 105 9 months ago
4.0.419 105 9 months ago
4.0.412 112 9 months ago
4.0.382 112 10 months ago
4.0.375 117 6/3/2024
4.0.372 107 5/28/2024
4.0.369 103 5/28/2024
4.0.364 96 5/28/2024
4.0.357 116 5/28/2024
4.0.348 99 5/20/2024
4.0.345 96 5/20/2024
4.0.340 119 5/13/2024
4.0.337 136 5/6/2024
4.0.334 129 5/6/2024
4.0.331 126 4/30/2024
4.0.328 129 4/30/2024
4.0.323 142 4/30/2024
4.0.316 128 4/30/2024
4.0.313 106 4/29/2024
4.0.302 123 4/22/2024
4.0.299 120 4/22/2024
4.0.294 118 4/22/2024
4.0.291 104 4/22/2024
4.0.282 126 4/16/2024
4.0.279 114 4/16/2024
4.0.274 115 4/16/2024
4.0.267 123 4/16/2024
4.0.250 127 4/8/2024
4.0.247 98 4/8/2024
4.0.242 128 4/8/2024
4.0.235 118 3/25/2024
4.0.232 117 3/25/2024
4.0.227 125 3/25/2024
4.0.220 124 3/21/2024
4.0.210 137 2/26/2024
4.0.207 127 2/26/2024
4.0.202 119 2/26/2024
4.0.193 127 2/19/2024
4.0.186 129 2/19/2024
4.0.177 121 2/19/2024
4.0.160 127 2/14/2024
4.0.154 117 2/12/2024
4.0.151 108 2/12/2024
4.0.148 117 2/6/2024
4.0.145 117 2/5/2024
4.0.140 121 1/30/2024
4.0.135 108 1/29/2024
4.0.132 112 1/29/2024
4.0.127 111 1/29/2024
4.0.120 116 1/29/2024
4.0.112 135 1/22/2024
4.0.107 119 1/22/2024
4.0.104 121 1/22/2024
4.0.99 119 1/22/2024
4.0.90 135 1/16/2024
4.0.82 136 1/15/2024
4.0.77 126 1/15/2024
4.0.70 137 1/8/2024
4.0.67 128 1/8/2024
4.0.62 173 12/25/2023
4.0.59 136 12/25/2023
4.0.54 143 12/25/2023
4.0.47 130 12/25/2023
4.0.38 155 12/18/2023
4.0.35 131 12/18/2023
4.0.32 136 12/18/2023
4.0.25 121 12/18/2023
4.0.3 149 12/17/2023
3.0.467 144 12/14/2023
3.0.461 153 12/12/2023
3.0.458 159 12/11/2023
3.0.455 150 12/11/2023
3.0.452 170 12/11/2023
3.0.445 174 12/5/2023
3.0.440 155 12/5/2023
3.0.435 152 11/28/2023
3.0.432 146 11/28/2023
3.0.427 298 11/23/2023
3.0.424 152 11/21/2023
3.0.417 714 11/14/2023
3.0.411 128 11/14/2023
3.0.408 152 11/14/2023
3.0.400 172 11/10/2023
3.0.391 161 11/7/2023
3.0.388 154 11/7/2023
3.0.385 183 10/24/2023
3.0.382 161 10/17/2023
3.0.378 192 9/25/2023
3.0.373 171 9/24/2023
3.0.370 168 9/24/2023
3.0.365 169 9/24/2023
3.0.356 181 9/17/2023
3.0.353 168 9/17/2023
3.0.348 205 9/13/2023
3.0.338 195 9/13/2023
3.0.335 186 9/13/2023
3.0.332 187 9/13/2023
3.0.322 352 8/28/2023
3.0.314 373 8/13/2023
3.0.311 185 8/13/2023
3.0.308 204 8/13/2023
3.0.301 207 8/13/2023
3.0.291 283 8/3/2023
3.0.288 224 8/2/2023
3.0.283 249 7/28/2023
3.0.280 217 7/25/2023
3.0.277 207 7/25/2023
3.0.269 272 7/19/2023
3.0.266 187 7/19/2023
3.0.212 369 6/27/2023
3.0.209 253 6/26/2023
3.0.202 277 6/19/2023
3.0.193 204 6/18/2023
3.0.188 223 6/18/2023
3.0.183 202 6/18/2023
3.0.166 382 6/7/2023
3.0.156 375 5/31/2023
3.0.150 191 5/31/2023
3.0.147 210 5/31/2023
3.0.117 194 5/25/2023
3.0.114 465 5/4/2023
3.0.113 221 5/2/2023
3.0.109 231 4/28/2023
3.0.102 407 4/10/2023
3.0.97 244 4/9/2023
3.0.89 258 4/4/2023
3.0.84 377 4/3/2023
3.0.75 402 3/27/2023
3.0.72 337 3/25/2023
3.0.65 274 3/25/2023
3.0.56 261 3/25/2023
2.0.39 641 1/24/2023
2.0.38 715 1/9/2023
2.0.33 359 1/9/2023
2.0.32 355 1/9/2023
2.0.31 350 1/9/2023
2.0.26 386 12/14/2022
2.0.25 376 12/8/2022
2.0.24 368 12/8/2022
2.0.21 376 12/8/2022
2.0.12 1,267 11/1/2020
2.0.11 564 10/1/2020
2.0.10 634 9/1/2020
2.0.9 575 8/1/2020
2.0.8 717 7/1/2020
2.0.7 576 6/29/2020
1.0.58 683 6/1/2020
1.0.57 641 5/2/2020
1.0.56 632 5/2/2020
1.0.54 654 5/2/2020
1.0.52 597 5/2/2020
1.0.51 626 5/2/2020
1.0.50 639 5/2/2020
1.0.49 685 5/2/2020
1.0.48 620 5/2/2020
1.0.47 630 5/2/2020
1.0.46 641 5/1/2020
1.0.45 651 5/1/2020
1.0.44 628 5/1/2020
1.0.43 647 5/1/2020
1.0.42 615 5/1/2020
1.0.41 629 5/1/2020
1.0.40 654 5/1/2020
1.0.39 639 5/1/2020
1.0.38 638 5/1/2020
1.0.37 684 5/1/2020
1.0.36 617 5/1/2020
1.0.35 623 5/1/2020
1.0.34 626 5/1/2020
1.0.33 630 5/1/2020
1.0.32 595 5/1/2020
1.0.31 617 5/1/2020
1.0.30 597 5/1/2020
1.0.29 621 5/1/2020
1.0.28 611 5/1/2020
1.0.27 651 5/1/2020
1.0.26 676 5/1/2020
1.0.25 722 5/1/2020
1.0.24 651 5/1/2020
1.0.22 677 5/1/2020
1.0.21 612 4/24/2020
1.0.20 634 4/24/2020
1.0.19 611 4/24/2020
1.0.12 1,024 9/19/2018
1.0.9 1,004 8/16/2018
1.0.8 1,000 8/16/2018