Class: ShipHero::Services::WebhookService
Instance Attribute Summary
Attributes inherited from BaseService
#api_key
Instance Method Summary
collapse
Methods inherited from BaseService
#initialize
Instance Method Details
#register_webhook(request) ⇒ Object
14
15
16
17
|
# File 'lib/ship_hero/services/webhook_service.rb', line 14
def register_webhook(request)
raise Exceptions::ServiceException, "Must be a ShipHero::Webhook" unless request.is_a?(ShipHero::Webhook)
post(Util::Config.get('endpoints.register_webhook'), request)
end
|
#unregister_webhook(request) ⇒ Object
19
20
21
22
|
# File 'lib/ship_hero/services/webhook_service.rb', line 19
def unregister_webhook(request)
raise Exceptions::ServiceException, "Must be a ShipHero::Webhook" unless request.is_a?(ShipHero::Webhook)
post(Util::Config.get('endpoints.unregister_webhook'), request)
end
|