Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.openapi-generator Generated clients Mar 7, 2019
docs Generated clients Mar 7, 2019
test Generated clients Mar 7, 2019
unwired Generated clients Mar 7, 2019
.gitignore
.openapi-generator-ignore Generated clients Mar 7, 2019
.travis.yml Generated clients Mar 7, 2019
README.md Generated clients Mar 7, 2019
git_push.sh Generated clients Mar 7, 2019
requirements.txt
setup.py
test-requirements.txt
tox.ini Generated clients Mar 7, 2019

README.md

unwired

Geolocation, Geocoding and Maps

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 2.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/unwiredlabs/unwired-python-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/unwiredlabs/unwired-python-client.git)

Then import the package:

import unwired 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import unwired

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import unwired
from unwired.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
configuration = unwired.Configuration()
configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = unwired.BALANCEApi(unwired.ApiClient(configuration))

try:
    # balance
    api_response = api_instance.balance()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BALANCEApi->balance: %s\n" % e)

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

Documentation For Authorization

token

  • Type: API key
  • API key parameter name: token
  • Location: URL query string

Author

You can’t perform that action at this time.