Sha256: ab73d29bd58cbb1458e3bf795bf1bbb1791db5b50daa46bc596f07c36361621e

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

module Shipstation
  class Webhook < ApiResource

    class << self
      def subscribe(params={})
        response = Shipstation.request(:post, 'webhooks/subscribe', params)

        return response
      end

      def unsubscribe(object_id, params={})
        response = Shipstation.request(:delete, "webhooks/#{object_id}", params)

        return response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shipstation-0.23 lib/shipstation/webhook.rb
shipstation-0.22 lib/shipstation/webhook.rb