Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shipday

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

shipday

Shipday API wrapper

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Shipday Node.js SDK

The Shipday node sdk provides easier access to the from applications written in server-side JavaScript.

Documentation

See the shipday api docs for Node.js

Requirements

Node 10 or higher

Installation

npm install shipday --save
# or 
yarn add shipday

Usage

You need to provide the shipday api-key in order to use the library. Example usages looks like following:-

const Shipday = require('shipday/integration')
const shipdayClient = new Shipday('**** api key', 10000);
shipdayClient.carrierService.getCarriers().then(r => console.log(r[0]));

The first parameter is your api key, second parameter is timeout for request in millisecond.

And it will look like following in the console:-

{
  id: 48767,
  personalId: '',
  name: 'John Doe',
  codeName: '',
  phoneNumber: '1-650-550-2975',
  companyId: 13808,
  areaId: 13807,
  isOnShift: false,
  email: 'john.doe@shipday.com',
  carrierPhoto: null,
  device: 'iPhone12,5',
  osInfo: '15.6',
  isActive: true,
  carrrierLocationLat: 22.328689,
  carrrierLocationLng: 91.783807,
  isAppLocationServiceOn: false
}

Run Tests

To run the tests, first resolve all dependencies by using

npm install

and then execute the following

npm run test

Keywords

FAQs

Package last updated on 27 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc