Class: Structurely::Clients::ConversationWebhooks

Inherits:
ApiStruct::Client
  • Object
show all
Defined in:
lib/structurely/clients/conversation_webhooks.rb

Instance Method Summary collapse

Instance Method Details

#create(post_data) ⇒ Object

Calls POST /conversationWebhooks

Examples:

Structurely::Clients::ConversationWebhooks.new.create({ foo: "bar" })

See Also:



29
30
31
# File 'lib/structurely/clients/conversation_webhooks.rb', line 29

def create(post_data)
  post(json: post_data, path: "conversationWebhooks")
end

#destroy(id) ⇒ Object

Calls DELETE /conversationWebhooks/:id

Examples:

Structurely::Clients::ConversationWebhooks.new.delete("abcde")

See Also:



47
48
49
# File 'lib/structurely/clients/conversation_webhooks.rb', line 47

def destroy(id)
  delete(id, path: "conversationWebhooks")
end

#indexObject

Calls GET /conversationWebooks

Examples:

Structurely::Clients::ConversationWebhooks.new.index

See Also:



11
12
13
# File 'lib/structurely/clients/conversation_webhooks.rb', line 11

def index
  get(path: "conversationWebhooks")
end

#show(id) ⇒ Object

Calls GET /conversationWebhooks/:id

Examples:

Structurely::Clients::ConversationWebhooks.new.show('test-conversation-webhook-id')

See Also:



20
21
22
# File 'lib/structurely/clients/conversation_webhooks.rb', line 20

def show(id)
  get(id, path: "conversationWebhooks")
end

#update(id, post_data) ⇒ Object

Calls PATCH /conversationWebhooks/:id

Examples:

Structurely::Clients::ConversationWebhooks.new.update("abcde", { foo: "bar" })

See Also:



38
39
40
# File 'lib/structurely/clients/conversation_webhooks.rb', line 38

def update(id, post_data)
  patch(id, json: post_data, path: "conversationWebhooks")
end