New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@livepreso/api

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livepreso/api

Everything to do with talking to the SalePreso API

latest
npmnpm
Version
6.57.0
Version published
Maintainers
5
Created
Source

API

The single point of entry for interacting with the SalesPreso API. Contains functionality for contacting and authorizing wi the API endpoint, as well as middleware, models and collections for sending and retrieving data.

Install

npm install sp-api

or

yarn add sp-api

Examples

import {Auth, Api} from "@livepreso/api";
import {registerMiddleware} from "@livepreso/api/middleware";
import AuthMiddleware from "@livepreso/api/middlewares/auth";
import RedirectMiddleware from "@livepreso/api/middlewares/redirect";

const middlewares = [
  new AuthMiddleware(),
  new RedirectMiddleware(),
  new JSONMiddleware()
];

middlewares.map(registerMiddleware);

Api.initialize("http://localhost:8000/api/")
  .then(() => {
    return Auth.login("yourlogin", "yourpassword");
  });

Documentation

http://developers.salespreso.com/modules/sp-api/

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

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.

Install

Related posts