Coder Social home page Coder Social logo

ipinfo-api-client's Introduction

Build status codecov NuGet Downloads NuGet Version

IpInfo API Client

SDK to integrate your application with IpInfo.Api.

You must have a API implementing IpInfo.Api. You can change the API implementation to consume other service, but the API contract must be the same. So you can use this microservice for all your applications and the need to change the final service, you change in one place.

Install via NuGet

PM> Install-Package IpInfo.Api.Client

Dependencies

How to use

IIpInfoApiClient ipInfoClient = new IpInfoApiClient("http://localhost:505");

BaseResponse<GetIpInfoResponse> response = ipInfoClient.GetIpInfo("186.221.52.144");

if (response.StatusCode == HttpStatusCode.OK)
{
	// response.Data.Country : 'BR'
	// response.Data.City : 'Búzios'
	// response.Data.State : 'Rio de Janeiro'
	// response.Data.Latitude : -22.756633
	// response.Data.Longitude : -41.8913727
}

How can I contribute?

Please, refer to CONTRIBUTING

Found something strange or need a new feature?

Open a new Issue following our issue template ISSUE-TEMPLATE

Changelog

See in nuget version history

ipinfo-api-client's People

Contributors

thiagobarradas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.