ipstack Connector

Odoo Development / ipstack Connector

This is a tecnhical module, that on is own it does nothing, but it helps you connect your module with ipstack.

A real example is Website Analytics. I uses ipstack to map the visitor IP to is country.


The use is very simple, inherit the model ipstack.connector and use the method get_data to get the IPs information:

    ip_data = self.get_data(self.ip_address)

or use the method map_country to map a list of IPs with is country

    country = self.map_country(self.ip_address)