Skip to content

aprilwebster/consumption-preferences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Descriptions for Consumption Preferences

Build Status

Obtain descriptions for Personality Insights' consumption preferences.

Installation

$ npm install personality-consumption-preferences

Usage

  var PersonalityConsumptionPreferences = require('personality-consumption-preferences');

  // locale refers to the language to use - en, es or ja.  default is a locale of 'en' and a version of 'v3'
  // currently only v3 is supported
  var consumptionPreferences = new PersonalityConsumptionPreferences({ locale: 'es', version: 'v3'});

  // retrieve the consumption preference description for a specified consumption preference id (e.g., 'consumption_preferences_clothes_style')
  var clothesStylePreference  = consumptionPreferences.description('consumption_preferences_clothes_style');
  console.log('The preference description for consumption preference id consumption_preferences_clothes_style is ' + clothesStylePreference);

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published