Socket
Book a DemoInstallSign in
Socket

@pgprojectx/bazaarvoice-sdk

Package Overview
Dependencies
Maintainers
32
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pgprojectx/bazaarvoice-sdk

API wrapper for BazaarVoice

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
7
-30%
Maintainers
32
Weekly downloads
 
Created
Source

@pgprojectx/bazaarvoice-sdk

API wrapper for BazaarVoice

Table of Contents

  • Install
  • Usage
  • Notes

Install

npm install @pgprojectx/bazaarvoice

Usage

const bazaarvoice = require('@pgprojectx/bazaarvoice-sdk');

const client = bazaarvoice({
  host: 'https://api.bazaarvoice.com',
  apiVersion: '5.4',
  apiKey: 'apiKey'
});

// Get Product Reviews
const reviews = await client.getProductReviews('000123645678901');
console.log(reviews);
// {
//   "reviewCount": Number,
//   "reviews": Array,
//   "rating": Number
// }

Notes

BazaarVoice does not return 404s for non-existing products. So default responses will result in the following object

{
  "reviewCount": 0,
  "reviews": [],
  "rating": false
}

Keywords

api

FAQs

Package last updated on 20 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.