Giter Club home page Giter Club logo

postmen-sdk-ruby's Introduction

postmen-ruby

Build Status Code Climate Gem Version Dependency Status Coverage Status Documentation 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.configure do |config|
  config.region = 'sandbox' # set 'sandbox' or 'production. Required
  config.api_key = 'YOUR API KEY' # Required
  config.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 label

Postmen::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.

postmen-sdk-ruby's People

Contributors

bossa573 avatar krzyzak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

postmen-sdk-ruby's Issues

Manifests

  • Retrieving manifest
  • Listing all manifests
  • Creating manifest

Labels

  • Listing all labels
  • Retrieving a label
  • Creating a label

Connection handling

  • Ability to switch between sandbox and production
  • Handling rate limits
  • Parsing response

Basic setup

  • Add configuration module
  • Basic gem structure
  • Test suite setup
  • Rubocop setup
  • CodeClimate setup

Support DNS failover

It will be great if SDK support DNS fail over.

e.g.

if sandbox-api.postmen.com fail in DNS lookup,
it can fall back to sandbox-api.postmen.net

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.