Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
mastercard-audiences
Advanced tools
Node.js Module for mastercard-audiences
A Node.js module for the mastercard-audiences
API.
If you have not already got an account sign up at https://developer.mastercard.com.
If you haven't done so, you first need to install the mastercard-audiences
module.
You can install it using node's package manager (NPM) with the following command:
npm install mastercard-audiences
To run an API request you first need to initialize the MasterCardAPI. You only need to do initialize MasterCardAPI once per application instance.
var audiences = require('mastercard-audiences');
var MasterCardAPI = audiences.MasterCardAPI;
var consumerKey = "your consumer key"; // You should copy this from "My Keys" on your project page e.g. UTfbhDCSeNYvJpLL5l028sWL9it739PYh6LU5lZja15xcRpY!fd209e6c579dc9d7be52da93d35ae6b6c167c174690b72fa
var keyStorePath = "path to your .p12 private key file"; // e.g. /Users/yourname/project/sandbox.p12 | C:\Users\yourname\project\sandbox.p12
var keyAlias = "keyalias"; // For production: change this to the key alias you chose when you created your production key
var keyPassword = "keystorepassword"; // For production: change this to the key alias you chose when you created your production key
// You only need to do initialize MasterCardAPI once
var authentication = new MasterCardAPI.OAuth(consumerKey, keyStorePath, keyAlias, keyPassword);
MasterCardAPI.init({
sandbox: true,
authentication: authentication
});
For examples and documentation see https://developer.mastercard.com
Please see LICENSE.txt for details.
For more detailed information on the API with examples visit the online documentation at https://developer.mastercard.com
Please see https://developer.mastercard.com for information.
Copyright (c) 2013 - 2016 MasterCard International Incorporated All rights reserved.
FAQs
Core functionality for MasterCard API
The npm package mastercard-audiences receives a total of 5 weekly downloads. As such, mastercard-audiences popularity was classified as not popular.
We found that mastercard-audiences demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.