Objectia 1.0.0
dotnet add package Objectia --version 1.0.0
NuGet\Install-Package Objectia -Version 1.0.0
<PackageReference Include="Objectia" Version="1.0.0" />
<PackageVersion Include="Objectia" Version="1.0.0" />
<PackageReference Include="Objectia" />
paket add Objectia --version 1.0.0
#r "nuget: Objectia, 1.0.0"
#addin nuget:?package=Objectia&version=1.0.0
#tool nuget:?package=Objectia&version=1.0.0
objectia-csharp
C#/.NET client for Objectia API®
Documentation
See the C# API docs.
Requirements
The C# client for Objectia API requires .NET Core 3.0 or later to be installed. You can check if you already have .NET Core installed on your machine by opening up a command prompt or terminal and running the following command:
dotnet --version
You should see something like 3.0.100. If you receive an error message, you can download .NET Core from Microsoft and install it.
Installation
With .NET CLI
dotnet add package Objectia --version 1.0.0
With Package Manager
PM> Install-Package Objectia -Version 1.0.0
Usage
The library needs to be configured with your account's API key. Get your own API key by signing up for a free Objectia account.
using System;
using Objectia;
using Objectia.Api;
using Objectia.Exceptions;
class Program
{
static void Main(string[] args)
{
var apiKey = Environment.GetEnvironmentVariable("OBJECTIA_APIKEY");
try
{
ObjectiaClient.Init(apiKey);
var location = await Api.GeoLocation.Get("8.8.8.8");
Console.WriteLine("Country code: " + location.CountryCode);
} catch (ResponseException e) {
Console.WriteLine("Failed to get location");
}
}
}
License and Trademarks
Copyright (c) 2018-19 UAB Salesfly.
Licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Objectia is a registered trademark of UAB Salesfly.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Newtonsoft.Json (>= 12.0.2)
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 |
---|