Skip to content

Extract your Lightspeed Retail product data to XML for feeding into other systems, e.g. Google Merchant Centre

Notifications You must be signed in to change notification settings

darrylmorley/lightspeedToXML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightspeedToXML

  • lightspeedToXML is a simple Node.js script that retrieves product data from your Lightspeed account and creates an XML file from the results.
  • The generated XML file can be used for various purposes, such as feeding product information to other systems or platforms.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js installed on your local machine.

Installation

  1. Clone this repository:

    git clone https://github.com/darrylmorley/lightspeedToXML.git

  1. Navigate & Install dependencies:
  cd lightspeedToXML
  npm install

  1. Create a .env file in the project root directory and set the following environment variables with your Lightspeed API credentials:
LIGHTSPEED_ACCOUNT_ID=your_account_id
LIGHTSPEED_CLIENT_ID=your_client_id
LIGHTSPEED_CLIENT_SECRET=your_client_secret
LIGHTSPEED_REFRESH_TOKEN=your_refresh_token

Usage

Run the script:

npm run start

Acknowledgments

  • Lightspeed API: Documentation for the Lightspeed API.
  • slugify: Used for generating slugs from product descriptions.
  • xml: Used for creating XML documents.

Contributing

Contributions are welcome! Feel free to open issues or pull requests to improve this project.

Version History 0.1.0 (23/10/23): Initial release.

About

Extract your Lightspeed Retail product data to XML for feeding into other systems, e.g. Google Merchant Centre

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published