sphere-ipinfo-mashup

0.3.1 • Public • Published

SPHERE.IO/ipinfo.io connector

Build Status

This small helper creates automatically carts in your SPHERE.IO project where the country is set to the origin of the used or given IP address. To obtain the country the ipinfo.io API is used. In addition, the currency for the cart is selected based on country data provided by country-data.

Usage

General command line options can be seen by simply executing the command node lib/run.

node lib/run

  Usage:     --projectKey <project-key> --clientId <client-id> --clientSecret <client-secret> --ipAddress <ip-address>

  Options:

    --projectKey <key>              your SPHERE.IO project-key
    --clientId <id>                 your OAuth client id for the SPHERE.IO API
    --clientSecret <secret>         your OAuth client secret for the SPHERE.IO API
    --ipAddress <ip>                the IP address you want to use for the cart creation  [if not set, the server address will be used]
    --logLevel <level>              specifies log level (error|warn|info|debug|trace)     [default: info]
    --logDir <directory>            specifies log file directory [.]
    --logSilent <boolean>           use console to print messages                         [default: false]

Package Sidebar

Install

npm i sphere-ipinfo-mashup

Weekly Downloads

0

Version

0.3.1

License

none

Last publish

Collaborators

  • mmoelli