Sha256: 5d9daccebebba4796237dfeca7aea81651c25a83a543e54ce09fa4bd896af8aa

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

module Shipstation
  class Webhook < ApiResource
    extend Shipstation::APIOperations::List

    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.25 lib/shipstation/webhook.rb
shipstation-0.24 lib/shipstation/webhook.rb