class Structurely::Clients::ConversationWebhooks
Public Instance Methods
create(post_data)
click to toggle source
Calls POST /conversationWebhooks
@example
Structurely::Clients::ConversationWebhooks.new.create({ foo: "bar" })
@see docs.structurely.com/#conversation-webhooks-create-conversation-webhook
# File lib/structurely/clients/conversation_webhooks.rb, line 29 def create(post_data) post(json: post_data, path: "conversationWebhooks") end
destroy(id)
click to toggle source
Calls DELETE /conversationWebhooks/:id
@example
Structurely::Clients::ConversationWebhooks.new.delete("abcde")
@see docs.structurely.com/#conversation-webhooks-delete-conversation-webhook
# File lib/structurely/clients/conversation_webhooks.rb, line 47 def destroy(id) delete(id, path: "conversationWebhooks") end
index()
click to toggle source
Calls GET /conversationWebooks
@example
Structurely::Clients::ConversationWebhooks.new.index
@see docs.structurely.com/#conversation-webhooks-list-conversation-webhooks
# File lib/structurely/clients/conversation_webhooks.rb, line 11 def index get(path: "conversationWebhooks") end
show(id)
click to toggle source
Calls GET /conversationWebhooks/:id
@example
Structurely::Clients::ConversationWebhooks.new.show('test-conversation-webhook-id')
@see docs.structurely.com/#conversation-webhooks-get-conversation-webhook
# File lib/structurely/clients/conversation_webhooks.rb, line 20 def show(id) get(id, path: "conversationWebhooks") end
update(id, post_data)
click to toggle source
Calls PATCH /conversationWebhooks/:id
@example
Structurely::Clients::ConversationWebhooks.new.update("abcde", { foo: "bar" })
@see docs.structurely.com/#conversation-webhooks-update-conversation-webhook
# File lib/structurely/clients/conversation_webhooks.rb, line 38 def update(id, post_data) patch(id, json: post_data, path: "conversationWebhooks") end