# README
Go API client for unwired
Geolocation, Geocoding and Maps
Overview
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 2.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Installation
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./unwired"
Documentation for API Endpoints
All URIs are relative to https://us1.unwiredlabs.com/v2
Class | Method | HTTP request | Description |
---|---|---|---|
BALANCEApi | Balance | Get /balance.php | balance |
GEOLOCATIONApi | Geolocation | Post /process.php | Geolocation |
REVERSEApi | Reverse | Get /reverse.php | Reverse Geocoding |
SEARCHApi | Search | Get /search.php | Forward Geocoding |
TimezoneApi | Timezone | Get /timezone.php | timezone |
Documentation For Models
- AddressDetailsSchema
- AddressSchema
- AllSchema
- BalanceResponseSchema
- BtSchema
- CellSchema
- ErrorSchema
- FallbackSchema
- GeolocationAddressSchema
- GeolocationErrorSchema
- GeolocationResponseSchema
- GeolocationSchema
- IpfSchema
- LacfSchema
- RadioSchema
- ReverseResponseSchema
- ScfSchema
- SearchResponseSchema
- TimezoneResponseSchema
- TimezoneSchema
- WifiSchema
Documentation For Authorization
token
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)