Socket
Socket
Sign inDemoInstall

github.com/coreymgilmore/xpologistics

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/coreymgilmore/xpologistics

Package xpo provides tooling to connect to the XPO Logistics API. This is for truck shipments, not small parcels. Think LTL (less than truckload) shipments. This code was created off the XPO API documentation. The XPO API requires two steps in making the first request per usage. The first request gets a "bearer" token which is used in following requests that actually do something (like scheduling a pickup). Why the API is designed this way, who knows, but it is dumb. The "bearer" token is valid for 12 hours so you can reuse it and thus only have to make one request for future requests (up until 12 hours from the initial request that got the "bearer" token). Currently this package can perform: - pickup requests To create a pickup request: - Set test or production mode (SetProductionMode()). - Set your shipper (Shipper{}) and requestor (Requestor{}) info. - Set shipment details (PkupItem{}). - Request the pickup (RequestPickup()). - Check for any errors.


Version published

Readme

Source

xpologistics

Golang Code to Work With the XPO Logistics API

FAQs

Last updated on 07 Jun 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc