Sha256: 98d9d14c7a11ad5fd424b65c44ef993daf43b0c230e0706afa5a521b66036dc5

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 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

1 entries across 1 versions & 1 rubygems

Version Path
shipstation-0.26 lib/shipstation/webhook.rb