Salesfly 1.0.2

Install-Package Salesfly -Version 1.0.2
dotnet add package Salesfly --version 1.0.2
<PackageReference Include="Salesfly" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Salesfly --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Salesfly, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Salesfly as a Cake Addin
#addin nuget:?package=Salesfly&version=1.0.2

// Install Salesfly as a Cake Tool
#tool nuget:?package=Salesfly&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

salesfly-csharp

Build Status

C#/.NET client for Salesfly API®

Documentation

See the C# API docs.

Requirements

The C# client for Salesfly 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 Salesfly --version 1.0.0

With Package Manager

PM> Install-Package Salesfly -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 Salesfly account.

using System;
using Salesfly;
using Salesfly.Api;
using Salesfly.Exceptions;

class Program
{
    static void Main(string[] args)
    {
        var apiKey = Environment.GetEnvironmentVariable("SALESFLY_APIKEY");
        try
        {
            SalesflyClient.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-20 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.

Salesfly is a registered trademark of UAB Salesfly.

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
1.0.2 235 5/18/2020
1.0.0 216 5/15/2020