Fetch data from ipstack services

Inherit ipstack.connector module and use the available methods

_name = "your.model"
_inherit = ["ipstack.connector"]

@api.multi
def your_method(self):
    (...)
    country = self.map_ip(rec.ip_address)

Set the API URL and key on system general settings

FAQ

  • Free accounts: If you use a free account, change the API url to HTTP

ipstack Connector is under BSD-3 License