ipbase

package module
Version: v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 6 Imported by: 0

README

ipbase-go: Golang Geolocation API

This package is a Golang wrapper for ipbase.com that aims to make the usage of the API as easy as possible in your project.

Usage

Initialize the API with your API Key (get one for free at ipbase.com):

ipbase.Init("YOUR-API-KEY")

Afterwards you can make calls to the API like this:

Status Endpoint
ipbase.Status()
Info Endpoint
ipbase.Info({
    "ip": "1.1.1.1",
    "language": "de"
})

Find out more about our endpoints, parameters and response data structure in the docs

License

The MIT License (MIT). Please see License File for more information.

Documentation

Index

Constants

View Source
const BaseUrl = "https://api.ipbase.com/v2/"

Variables

This section is empty.

Functions

func Info

func Info(params map[string]string) []byte

func Init

func Init(key string)

func Status

func Status() []byte

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL