Liquid Modules
  • Modules
    • Getting Started
    • Authentication
    • React
      • Breadcrumbs
      • Carousel
        • Category Carousel
        • Product Carousel
      • Cart
      • Checkout
      • Order Confirmation
      • Order Tracking
      • Product
      • Product List Page
Powered by GitBook
On this page
  1. Modules

Authentication

PreviousGetting StartedNextReact

Last updated 1 year ago

The Liquid Modules 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_.

Once you create a new instance of the LiquidModules() library it will generate an access token that then automatically attaches to each request, the access token has a 1 hour 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 . 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. **

Usage

import LiquidModules from '@liquidcloud/modules-react';

LiquidModules('dev_******************', {
    // You'll need to provide your own
    // Google Maps API Key
    googlePlacesApiKey: 'AIzaSyD_******************-********',
  }).then((liquidModules) => {
    const { setDeliveryAddress } = liquidModules;
    // Setting your address
    setDeliveryAddress({
       address: {
         one: "100 madison ave",
         two: "apt 1707",
         city: "New york",
         state: "NY",
         zip: "10016"
       },
    });
  });
HTTPS