
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@liquidcommercedev/rmn-sdk
Advanced tools

The Liquid Commerce RMN SDK provides an easier way to interact with our Retail Media Network APIs through a server-side SDK for Node.js and Web JS script (more libraries will soon follow).
The RMN SDK is bundled for use with both import/require , if you need the client side use the script below, compiled down to ES2015.
<script src="https://js.liquidcommerce.co/sdk/v1"></script>
| Method | Description |
|---|---|
spotSelection({}) | A sample authenticated interaction with our Decision API that receives custom personalized ADs using machine learning and event based data. |
createSpotElement({}) | A simple method that makes your life easier by creating the spot element ready for injection anywhere in your site. |
The Liquid Commerce library provides convenient, secure, and encrypted access to our Liquid Commerce methods through API Key authentication.
Install the package with:
npm install @liquidcommercedev/rmn-sdk
# or
yarn add @liquidcommercedev/rmn-sdk
The Liquid Commerce methods use API keys to authenticate requests. You can request your keys from your Partnerships liaison.
Development mode secret keys have the prefix dev_ and Production ready secret keys have the prefix prod_.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Once you create a new instance of the LiquidCommerce() library it will generate an access token that then automatically attaches to each request, the access token has a 1hour expiry that continues to refresh on each call. If an hour has passed without using the token, you must authenticate again to fetch a fresh access token.
All API requests in production must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
ALL LIVE/PRODUCTION API REQUESTS AND RESPONSES ARE ENCRYPTED IN TRANSMISSION.
const RmnClient = require('@liquidcommercedev/rmn-sdk');
For ES modules and async/await:
import { RmnClient } from '@liquidcommercedev/rmn-sdk';
import { RmnClient } from '@liquidcommercedev/rmn-sdk';
// Your Account token provided to you through your account representative
const client = await RmnClient('YOUR_API_KEY', {
env: 'staging'
});
A sample authenticated interaction with our Decision API that receives custom personalized ADs using machine learning and event based data.
An example use case for LiquidCommerce's spotSelection({}) method.
import RmnClient from '@liquidcommercedev/rmn-sdk';
// Your Account token provided to you through your account representative
const client = await RmnClient('YOUR_API_KEY', {
env: 'staging'
});
const spots = await client.spotSelection({
"spots": ['billboard', 'leaderboard']
});
console.log({ spots });
FAQs
LiquidCommerce RMN SDK
We found that @liquidcommercedev/rmn-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.