@simonjayhawkins/ubiquitous-winner
A command-line tool to fetch ASIN item attributes using Amazon Marketplace Web Services API
Last updated 3 years ago by simonjayhawkins .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @simonjayhawkins/ubiquitous-winner -g
SYNC missed versions from official npm registry.

ubiquitous-winner

npm version JavaScript Style Guide

Installation

install globally using npm so that it may be run from the command line.

npm install -g @simonjayhawkins/ubiquitous-winner

Configuration

create mwsconfig.json in your home directory for Amazon Marketplace credentials

{
  "merchantId": "<Your Merchant Id>",
  "accessKeyId": "<Your AWS Access Key ID>",
  "secretAccessKey": "<Your AWS Secret Key>",
  "endpoint": "<Your Marketplace Endpoint>",
  "marketplaceId": "<Your Default Marketplace Id>",
  "dataService": {
    "default": "localFileSystem",
    "services": {
      "localFileSystem": {
        "path": "mws-requests",
        "format": "json"
      },
      "s3": {
        "bucketName": "<myBucket>",
        "bucketRegion": "<myRegion>",
        "objectPrefix": "mws-requests",
        "objectStorageClass": "STANDARD | REDUCED_REDUNDANCY | STANDARD_IA"
      }
    }
  }
}

create config.json in the working directory

{
  "GetMatchingProductForId": {
    "dataService": {
      "default": "localFileSystem",
      "services": [
        {
          "name": "localFileSystem",
          "module": "data-service-local-fs",
          "eventSourceFilePrefix": "item-attributes/item-attributes",
          "eventSourceFileExt": "log",
          "snapshotFilePrefix": "item-attributes.snapshot",
          "snapshotFileExt": "txt"
        }
      ]
    }
  }
}

If using AWS create a credentials file at ~/.aws/credentials on Mac/Linux or C:\Users\USERNAME\.aws\credentials on Windows

[default]

aws_access_key_id = your_access_key

aws_secret_access_key = your_secret_key

Usage

  Usage: getproductdata [options] [file]

  A command-line tool to fetch ASIN item attributes using Amazon Marketplace Web Services API

  Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -v, --verbose                 additional output
    -a, --all                     process all ASIN in <file>
    -c, --config <path>           set dataservice config path. defaults to config.json
    -m, --mws-credentials <path>  set MWS credentials path. defaults to /home/user/mwsconfig.json

Current Tags

  • 1.0.0-alpha.4                                ...           latest (3 years ago)

4 Versions

  • 1.0.0-alpha.4                                ...           3 years ago
  • 1.0.0-alpha.3                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           4 years ago
  • 1.0.0-alpha.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |