0.0.7 • Published 6 years ago

bl_amazon_api v0.0.7

Weekly downloads
1
License
Apache 2.0
Repository
-
Last release
6 years ago

bl_amazon_api

BlAmazonApi - JavaScript client for bl_amazon_api This is an API documentation for the Bluehack Amazon Service. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.7
  • Package version: 0.0.7
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install bl_amazon_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your bl_amazon_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('bl_amazon_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/bl_amazon_api then install it via:

    npm install YOUR_USERNAME/bl_amazon_api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var BlAmazonApi = require('bl_amazon_api');

var api = new BlAmazonApi.AdvertisingApi()

var nodeId = "nodeId_example"; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAdvertisingBrowseNode(nodeId, callback);

Documentation for API Endpoints

All URIs are relative to http://104.198.83.158:80

ClassMethodHTTP requestDescription
BlAmazonApi.AdvertisingApigetAdvertisingBrowseNodeGET /advertising/browseNodes/{nodeId}Get browse node hierarchy from Amazon
BlAmazonApi.AdvertisingApigetAdvertisingBrowseNodeTopSellersGET /advertising/browseNodes/{nodeId}/topSellersGet 10 top sellers within a specified browse node from Amazon
BlAmazonApi.AdvertisingApigetAdvertisingStatusGET /advertising/statusGet Amazon Product Advertising API status
BlAmazonApi.MwsApigetMwsFeedsSubmissionsGET /mws/feeds/submissionsGet a list of feed submissions submitted
BlAmazonApi.MwsApigetMwsFeedsSubmissionsResultGET /mws/feeds/submissions/{feedSubmissionId}/resultGet the feed processing report
BlAmazonApi.MwsApigetMwsStatusGET /mws/statusGet Amazon MWS API status
BlAmazonApi.MwsApipostSubmitFeedPOST /mws/feeds/submitPost feed with a flat file
BlAmazonApi.ProductApigetProductsBrowseNodeAttributesGET /products/browseNodes/{nodeId}/attributesGet attributes within a specified browse node for the title generating
BlAmazonApi.ProductApigetProductsBrowseNodeValidValueGET /products/browseNodes/{nodeId}/validValueGet the browse node's valid value for submiting a flat file
BlAmazonApi.ProductApigetProductsStatusGET /products/statusGet Product API status
BlAmazonApi.ToolApigetDictionaryBrowseNodesAllGET /tool/dictionary/browseNodes/{nodeId}/allGet all dictionary hierarchy within a specified browse node
BlAmazonApi.ToolApigetDictionaryProductsAttrsGET /tool/dictionary/products/{nodeId}/attrs/{attrId}Get an attribute within a specified browse node's
BlAmazonApi.ToolApigetDictionaryProductsAttrsSubAttrsGET /tool/dictionary/products/{nodeId}/attrs/{attrId}/subAttrs/{subAttrId}Get a sub attribute within a specified browse node's attribute
BlAmazonApi.ToolApigetDictionaryProductsAttrsSubAttrsWordsGET /tool/dictionary/products/{nodeId}/attrs/{attrId}/subAttrs/{subAttrId}/wordsCheck the dic_word contains within a specified browse node's attribute's sub attribute
BlAmazonApi.ToolApigetDictionarySubAttrsWordsGET /tool/dictionary/subAttrs/wordsGet dictionary words with subAttrId list
BlAmazonApi.ToolApigetDictionaryWordsGET /tool/dictionary/wordsDEPRECATED Get dictionary words for filtering within specified browse nodes
BlAmazonApi.ToolApigetDictionaryWordsFilteredGET /tool/dictionary/words/{nodeId}/filteredGet filtered words within a specified browse node with filtering words
BlAmazonApi.ToolApigetToolTitlesGET /tool/titles/{nodeId}Get 100 amazon best selling item titles within a specified browse node
BlAmazonApi.ToolApipostDictionaryProductsAttrsPOST /tool/dictionary/products/{nodeId}/attrs/{attrId}Add attribute within a specified browse node's
BlAmazonApi.ToolApipostDictionaryProductsAttrsSubAttrsPOST /tool/dictionary/products/{nodeId}/attrs/{attrId}/subAttrs/{subAttrId}Add sub attribute within a specified browse node's attribute
BlAmazonApi.ToolApipostDictionaryProductsAttrsSubAttrsWordsPOST /tool/dictionary/products/{nodeId}/attrs/{attrId}/subAttrs/{subAttrId}/wordsAdd a dic_word within a specified browse node's attribute's sub attribute
BlAmazonApi.ToolApipostDictionarySubAttrsWordsCountResetPOST /tool/dictionary/subAttrs/words/count/resetReset title_dic counts
BlAmazonApi.ToolApipostDictionaryWordsPOST /tool/dictionary/wordsDEPRECATED Add filtering word to dictionary

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago