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

openapi_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi_client

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

openapi_client

OpenapiClient - the Ruby gem for the ShipEngine API

ShipEngine's easy-to-use REST API lets you manage all of your shipping needs without worrying about the complexities of different carrier APIs and protocols. We handle all the heavy lifting so you can focus on providing a first-class shipping experience for your customers at the best possible prices.

Each of ShipEngine's features can be used by itself or in conjunction with each other to build powerful shipping functionality into your application or service.

Getting Started

If you're new to REST APIs then be sure to read our introduction to REST to understand the basics. Learn how to authenticate yourself to ShipEngine, and then use our sandbox environment to kick the tires and get familiar with our API. If you run into any problems, then be sure to check the error handling guide for tips.

Here are some step-by-step tutorials to get you started:

Shipping Labels for Every Major Carrier

ShipEngine makes it easy to create shipping labels for any carrier and download them in a variety of file formats. You can even customize labels with your own messages and images.

Real-Time Package Tracking

With ShipEngine you can get the current status of a package or subscribe to real-time tracking updates via webhooks. You can also create custimized tracking pages with your own branding so your customers will always know where their package is.

Compare Shipping Costs Across Carriers

Make sure you ship as cost-effectively as possible by comparing rates across carriers using the ShipEngine Rates API. Or if you don't know the full shipment details yet, then you can get rate estimates with limited address info.

Worldwide Address Validation

ShipEngine supports address validation for virtually every country on Earth, including the United States, Canada, Great Britain, Australia, Germany, France, Norway, Spain, Sweden, Israel, Italy, and over 160 others.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.1.202006302006
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://www.shipengine.com/contact/

Installation

Build a gem

To build the Ruby code into a gem:

gem build openapi_client.gemspec

Then either install the gem locally:

gem install ./openapi_client-1.0.0.gem

(for development, run gem install --dev ./openapi_client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'openapi_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'openapi_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'openapi_client'

# Setup authorization
OpenapiClient.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['API-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['API-Key'] = 'Bearer'
end

api_instance = OpenapiClient::AddressesApi.new
parse_address_request_body = {"text":"Margie McMiller at 3800 North Lamar suite 200 in austin, tx.  The zip code there is 78652."} # ParseAddressRequestBody | The only required field is `text`, which is the text to be parsed. You can optionally also provide an `address` containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines. 

begin
  #Parse an address
  result = api_instance.parse_address(parse_address_request_body)
  p result
rescue OpenapiClient::ApiError => e
  puts "Exception when calling AddressesApi->parse_address: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.shipengine.com

ClassMethodHTTP requestDescription
OpenapiClient::AddressesApiparse_addressPUT /v1/addresses/recognizeParse an address
OpenapiClient::AddressesApivalidate_addressPOST /v1/addresses/validateValidate An Address
OpenapiClient::BatchesApiadd_to_batchPOST /v1/batches/{batch_id}/addAdd to a Batch
OpenapiClient::BatchesApicreate_batchPOST /v1/batchesCreate A Batch
OpenapiClient::BatchesApidelete_batchDELETE /v1/batches/{batch_id}Delete Batch By Id
OpenapiClient::BatchesApiget_batch_by_external_idGET /v1/batches/external_batch_id/{external_batch_id}Get Batch By External ID
OpenapiClient::BatchesApiget_batch_by_idGET /v1/batches/{batch_id}Get Batch By ID
OpenapiClient::BatchesApilist_batch_errorsGET /v1/batches/{batch_id}/errorsGet Batch Errors
OpenapiClient::BatchesApilist_batchesGET /v1/batchesList Batches
OpenapiClient::BatchesApiprocess_batchPOST /v1/batches/{batch_id}/process/labelsProcess Batch ID Labels
OpenapiClient::BatchesApiremove_from_batchPOST /v1/batches/{batch_id}/removeRemove From Batch
OpenapiClient::BatchesApiupdate_batchPUT /v1/batches/{batch_id}Update Batch By Id
OpenapiClient::CarrierAccountsApiconnect_carrierPOST /v1/connections/carriers/{carrier_name}Connect a carrier account
OpenapiClient::CarrierAccountsApidisconnect_carrierDELETE /v1/connections/carriers/{carrier_name}/{carrier_id}Disconnect a carrier
OpenapiClient::CarrierAccountsApiget_carrier_settingsGET /v1/connections/carriers/{carrier_name}/{carrier_id}/settingsGet carrier settings
OpenapiClient::CarrierAccountsApiupdate_carrier_settingsPUT /v1/connections/carriers/{carrier_name}/{carrier_id}/settingsUpdate carrier settings
OpenapiClient::CarriersApiadd_funds_to_carrierPUT /v1/carriers/{carrier_id}/add_fundsAdd Funds To Carrier
OpenapiClient::CarriersApiget_carrier_by_idGET /v1/carriers/{carrier_id}Get Carrier By ID
OpenapiClient::CarriersApiget_carrier_optionsGET /v1/carriers/{carrier_id}/optionsGet Carrier Options
OpenapiClient::CarriersApilist_carrier_package_typesGET /v1/carriers/{carrier_id}/packagesList Carrier Package Types
OpenapiClient::CarriersApilist_carrier_servicesGET /v1/carriers/{carrier_id}/servicesList Carrier Services
OpenapiClient::CarriersApilist_carriersGET /v1/carriersList Carriers
OpenapiClient::DownloadsApidownload_fileGET /v1/downloads/{dir}/{subdir}/{filename}Download File
OpenapiClient::InsuranceApiadd_funds_to_insurancePATCH /v1/insurance/shipsurance/add_fundsAdd Funds To Insurance
OpenapiClient::InsuranceApiconnect_insurerPOST /v1/connections/insurance/shipsuranceConnect a Shipsurance Account
OpenapiClient::InsuranceApidisconnect_insurerDELETE /v1/connections/insurance/shipsuranceDisconnect a Shipsurance Account
OpenapiClient::InsuranceApiget_insurance_balanceGET /v1/insurance/shipsurance/balanceGet Insurance Funds Balance
OpenapiClient::LabelsApicreate_labelPOST /v1/labelsPurchase Label
OpenapiClient::LabelsApicreate_label_from_ratePOST /v1/labels/rates/{rate_id}Purchase Label with Rate ID
OpenapiClient::LabelsApicreate_label_from_shipmentPOST /v1/labels/shipment/{shipment_id}Purchase Label with Shipment ID
OpenapiClient::LabelsApicreate_return_labelPOST /v1/labels/{label_id}/returnCreate a return label
OpenapiClient::LabelsApiget_label_by_external_shipment_idGET /v1/labels/external_shipment_id/{external_shipment_id}Get Label By External Shipment ID
OpenapiClient::LabelsApiget_label_by_idGET /v1/labels/{label_id}Get Label By ID
OpenapiClient::LabelsApiget_tracking_log_from_labelGET /v1/labels/{label_id}/trackGet Label Tracking Information
OpenapiClient::LabelsApilist_labelsGET /v1/labelsList labels
OpenapiClient::LabelsApivoid_labelPUT /v1/labels/{label_id}/voidVoid a Label By ID
OpenapiClient::ManifestsApicreate_manifestPOST /v1/manifestsCreate Manifest
OpenapiClient::ManifestsApiget_manifest_by_idGET /v1/manifests/{manifest_id}Get Manifest By Id
OpenapiClient::ManifestsApilist_manifestsGET /v1/manifestsList Manifests
OpenapiClient::PackageTypesApicreate_package_typePOST /v1/packagesCreate Custom Package Type
OpenapiClient::PackageTypesApidelete_package_typeDELETE /v1/packages/{package_id}Delete A Custom Package By ID
OpenapiClient::PackageTypesApiget_package_type_by_idGET /v1/packages/{package_id}Get Custom Package Type By ID
OpenapiClient::PackageTypesApilist_package_typesGET /v1/packagesList Custom Package Types
OpenapiClient::PackageTypesApiupdate_package_typePUT /v1/packages/{package_id}Update Custom Package Type By ID
OpenapiClient::RatesApicalculate_ratesPOST /v1/ratesGet Shipping Rates
OpenapiClient::RatesApicompare_bulk_ratesPOST /v1/rates/bulkGet Bulk Rates
OpenapiClient::RatesApiestimate_ratesPOST /v1/rates/estimateEstimate Rates
OpenapiClient::RatesApiget_rate_by_idGET /v1/rates/{rate_id}Get Rate By ID
OpenapiClient::ShipmentsApicancel_shipmentsPUT /v1/shipments/{shipment_id}/cancelCancel a Shipment
OpenapiClient::ShipmentsApicreate_shipmentsPOST /v1/shipmentsCreate Shipments
OpenapiClient::ShipmentsApiget_shipment_by_external_idGET /v1/shipments/external_shipment_id/{external_shipment_id}Get Shipment By External ID
OpenapiClient::ShipmentsApiget_shipment_by_idGET /v1/shipments/{shipment_id}Get Shipment By ID
OpenapiClient::ShipmentsApilist_shipment_errorsGET /v1/shipments/{shipment_id}/errorsGet Shipment Errors
OpenapiClient::ShipmentsApilist_shipment_ratesGET /v1/shipments/{shipment_id}/ratesGet Shipment Rates
OpenapiClient::ShipmentsApilist_shipmentsGET /v1/shipmentsList Shipments
OpenapiClient::ShipmentsApiparse_shipmentPUT /v1/shipments/recognizeParse shipping info
OpenapiClient::ShipmentsApitag_shipmentPOST /v1/shipments/{shipment_id}/tags/{tag_name}Add Tag to Shipment
OpenapiClient::ShipmentsApiuntag_shipmentDELETE /v1/shipments/{shipment_id}/tags/{tag_name}Remove Tag from Shipment
OpenapiClient::ShipmentsApiupdate_shipmentPUT /v1/shipments/{shipment_id}Update Shipment By ID
OpenapiClient::TagsApicreate_tagPOST /v1/tags/{tag_name}Create a New Tag
OpenapiClient::TagsApidelete_tagDELETE /v1/tags/{tag_name}Delete Tag
OpenapiClient::TagsApilist_tagsGET /v1/tagsGet Tags
OpenapiClient::TagsApirename_tagPUT /v1/tags/{tag_name}/{new_tag_name}Update Tag Name
OpenapiClient::TrackingApiget_tracking_logGET /v1/trackingGet Tracking Information
OpenapiClient::TrackingApistart_trackingPOST /v1/tracking/startStart Tracking a Package
OpenapiClient::TrackingApistop_trackingPOST /v1/tracking/stopStop Tracking a Package
OpenapiClient::WarehousesApicreate_warehousePOST /v1/warehousesCreate Warehouse
OpenapiClient::WarehousesApidelete_warehouseDELETE /v1/warehouses/{warehouse_id}Delete Warehouse By ID
OpenapiClient::WarehousesApiget_warehouse_by_idGET /v1/warehouses/{warehouse_id}Get Warehouse By Id
OpenapiClient::WarehousesApilist_warehousesGET /v1/warehousesList Warehouses
OpenapiClient::WarehousesApiupdate_warehousePUT /v1/warehouses/{warehouse_id}Update WareHouse By Id
OpenapiClient::WebhooksApicreate_webhookPOST /v1/environment/webhooksCreate a Webhook
OpenapiClient::WebhooksApidelete_webhookDELETE /v1/environment/webhooks/{webhook_id}Delete Webhook By ID
OpenapiClient::WebhooksApiget_webhook_by_idGET /v1/environment/webhooks/{webhook_id}Get Webhook By ID
OpenapiClient::WebhooksApilist_webhooksGET /v1/environment/webhooksList Webhooks
OpenapiClient::WebhooksApiupdate_webhookPUT /v1/environment/webhooks/{webhook_id}Update a Webhook

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: API-Key
  • Location: HTTP header

FAQs

Package last updated on 06 Sep 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

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