lib/pixela/client/webhook_methods.rb in pixela-0.5.0 vs lib/pixela/client/webhook_methods.rb in pixela-0.5.1
- old
+ new
@@ -6,11 +6,11 @@
#
# @return [Hashie::Mash]
#
# @raise [Pixela::PixelaError] API is failed
#
- # @see https://pixe.la/#api-webhook
+ # @see https://pixe.la/#api-detail-post-webhooks
#
# @example
# client.create_webhook(graph_id: "test-graph", type: "increment")
def create_webhook(graph_id:, type:)
params = {
@@ -27,11 +27,11 @@
#
# @return [Array<Hashie::Mash>]
#
# @raise [Pixela::PixelaError] API is failed
#
- # @see https://pixe.la/#api-webhook
+ # @see https://pixe.la/#api-detail-get-webhooks
#
# @example
# client.get_webhooks
def get_webhooks
with_error_handling do
@@ -45,11 +45,11 @@
#
# @return [Hashie::Mash]
#
# @raise [Pixela::PixelaError] API is failed
#
- # @see https://pixe.la/#api-webhook
+ # @see https://pixe.la/#api-detail-post-webhook
#
# @example
# client.invoke_webhook(webhook_hash: "<webhookHash>")
def invoke_webhook(webhook_hash:)
with_error_handling do
@@ -63,10 +63,10 @@
#
# @return [Hashie::Mash]
#
# @raise [Pixela::PixelaError] API is failed
#
- # @see https://pixe.la/#api-webhook
+ # @see https://pixe.la/#api-detail-delete-webhook
#
# @example
# client.delete_webhook(webhook_hash: "<webhookHash>")
def delete_webhook(webhook_hash:)
with_error_handling do