sphere-ipinfo-mashup

v0.1.0
Create carts in SPHERE.IO with information based on your IP address.
sphere sphereio ipinfo carts country

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]

Metadata

  • Unknown
  • >= 0.10.0
  • Martin Möllmann
  • released 1/1/2015

Downloads

Maintainers