Skip to content

Repository files navigation

postmen-ruby

Build StatusCode ClimateGem VersionDependency StatusCoverage StatusDocumentation status

Ruby Gem for Postmen API.

This extension helps developers to integrate with Postmen easily.

Resources

Installation

  1. Add the following line to your application's Gemfile

    gem 'postmen', '~> 1.0'
    
  2. Run bundler

    bundle install
    

Configuration

Postmen.configuredo |config|
config.region='sandbox'# set 'sandbox' or 'production. Requiredconfig.api_key='YOUR API KEY'# Requiredconfig.endpoint='http://my-custom-endpoint.example.com'# Optionally set custom endpoint url.end

Getting started

require'postmen'# Setup your postmen account (https://postmen.com), obtain an API key.# Configure Postmen, see Configuration section### Fetch all labels:Postmen::Label.all# Returns an instance of Postmen::LabelCollection# optionally you can pass additional params to the query:Postmen::Label.all(shipper_account_id: '1111')Postmen::Label.all(status: 'created')# For more options, please see the documentation: https://docs.postmen.com/api.html#labels-list-all-labels### Fetch single labelPostmen::Label.find('1111')# Returns an instance of Postmen::Label

The License (MIT)

Released under the MIT license. See the LICENSE file for the complete wording.

About

AfterShip Shipping (Postmen) API Client Library for Ruby (USPS, FedEx, UPS, DHL and more)

Topics

Resources

Stars

7 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages