sphere-ipinfo-mashup
v0.3.1
Published
Create carts in SPHERE.IO with information based on your IP address.
Downloads
11
Maintainers
Readme
SPHERE.IO/ipinfo.io connector
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]