mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
Compare commits
3 Commits
f227523fce
...
c7f26a78a2
Author | SHA1 | Date | |
---|---|---|---|
|
c7f26a78a2 | ||
|
5deb65a6e1 | ||
|
9766697747 |
@ -3,6 +3,12 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<PackageProjectUrl>https://lab.code-rove.com/bitip/</PackageProjectUrl>
|
||||
<PackageIcon>logo.png</PackageIcon>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<RepositoryUrl>https://lab.code-rove.com/gitea/tudor.stanciu/bitip/src/branch/main/src/clients/dotnet</RepositoryUrl>
|
||||
<PackageTags>Bitip Toodle</PackageTags>
|
||||
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/ReleaseNotes.txt"))</PackageReleaseNotes>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@ -10,4 +16,15 @@
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.9" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="logo.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
<None Update="README.md">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
20
src/clients/dotnet/Bitip.Client/README.md
Normal file
20
src/clients/dotnet/Bitip.Client/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Bitip.Client
|
||||
|
||||
[Bitip](https://lab.code-rove.com/gitea/tudor.stanciu/bitip#readme) is a high-performance GeoIP lookup service designed to provide accurate geolocation data for IP addresses.
|
||||
|
||||
-------- TO DO --------
|
||||
- You can see Bitip live here: https://lab.code-rove.com/bitip/
|
||||
|
||||
[Bitip.Client](https://lab.code-rove.com/gitea/tudor.stanciu/bitip/src/branch/main/src/clients/dotnet) is a simple .net client for Bitip. SDK is available as NuGet package on [NuGet](https://lab.code-rove.com/public-nuget-server/packages/bitip.client). Detail this section.
|
||||
|
||||
## Installation
|
||||
|
||||
You can install the Bitip.Client package via NuGet Package Manager Console:
|
||||
```bash
|
||||
|
||||
Install-Package Bitip.Client
|
||||
```
|
||||
Or via .NET CLI:
|
||||
```bash
|
||||
|
||||
--- TO DO ---
|
8
src/clients/dotnet/Bitip.Client/ReleaseNotes.txt
Normal file
8
src/clients/dotnet/Bitip.Client/ReleaseNotes.txt
Normal file
@ -0,0 +1,8 @@
|
||||
1.0.0 release [2025-10-08 01:35]
|
||||
◾ Initial release of BitipClient, a .NET library for interacting with the Bitip API.
|
||||
◾ Provides methods for retrieving IP geolocation data, ASN information, and domain details.
|
||||
◾ Supports asynchronous operations for improved performance.
|
||||
◾ Includes error handling for network issues and invalid API responses.
|
||||
◾ Comprehensive documentation and usage examples included.
|
||||
◾ Unit tests covering core functionality to ensure reliability.
|
||||
◾ NuGet package available for easy integration into .NET projects.
|
@ -1,8 +1,16 @@
|
||||
// Copyright (c) 2025 Tudor Stanciu
|
||||
|
||||
using Bitip.Client.Models;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bitip.Client.Services
|
||||
{
|
||||
public interface IBitipClient
|
||||
{
|
||||
Task<HealthInfo> GetHealth(CancellationToken cancellationToken = default);
|
||||
Task<VersionInfo> GetVersion(CancellationToken cancellationToken = default);
|
||||
Task<IpLocation> GetIpLocation(string ip, CancellationToken cancellationToken = default);
|
||||
Task<DetailedIpLocation> GetDetailedIpLocation(string ip, CancellationToken cancellationToken = default);
|
||||
}
|
||||
}
|
||||
|
BIN
src/clients/dotnet/Bitip.Client/logo.png
Normal file
BIN
src/clients/dotnet/Bitip.Client/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
Loading…
x
Reference in New Issue
Block a user