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

@toolkitx/fastspring

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toolkitx/fastspring

[![npm version](https://img.shields.io/npm/v/@toolkitx/fastspring.svg?style=flat-square)](https://www.npmjs.com/package/@toolkitx/fastspring) [![npm downloads](https://img.shields.io/npm/dm/@toolkitx/fastspring.svg?style=flat-square)](https://www.npmjs.c

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

@toolkitx/fastspring

npm version npm downloads

Installing

Using npm

npm install @toolkitx/fastspring

Example

Get instance

import {FastSpring, FastSpringPageResponse} from '@toolkitx/fastspring';
const fastSprint = new FastSpring('YOUR_USER_NAME', 'YOUR_PASSWORD');

Chain

fastSprint
.api('URL')
.head(key, value)
.query({key: 'value'})
.get()
// or .post(payload)
  • Get accounts
const accounts: FastSpringPageResponse = await fastSprint.accounts().get();
  • Get single account
const account = await fastSprint.accounts('ACCOUNT_ID').get();
  • Query accounts
const accounts = await fastSprint.accounts().query({email: 'EXAMPLE@EMAIL'}).get();
  • Create Session
const payload = {
    account: 'YOUR_ACCOUNT_ID',
    items: [
        {
            product: 'YOUR_PRODUCT_ID',
            quantity: 1,
        },
    ],
};
const session = await fastSprint.sessions().post(payload);

Custom Request

await fastSprint.api('RELATE_URL').get();
await fastSprint.api('RELATE_URL').post(payload);;

FAQs

Package last updated on 04 Nov 2020

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