Class: Amocrm::Resources::WidgetBotContinue

Inherits:
Object
  • Object
show all
Defined in:
lib/amocrm/resources/widget_bot_continue.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ WidgetBotContinue

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of WidgetBotContinue.

Parameters:



45
46
47
# File 'lib/amocrm/resources/widget_bot_continue.rb', line 45

def initialize(client:)
  @client = client
end

Instance Method Details

#continue(continue_id, bot_type:, bot_id:, data: nil, execute_handlers: nil, request_options: {}) ⇒ Amocrm::Models::WidgetBotContinueContinueResponse::EmptyResponse, Amocrm::Models::WidgetBotContinueContinueResponse::Problem

Parameters:

Returns:

See Also:



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/amocrm/resources/widget_bot_continue.rb', line 23

def continue(continue_id, params)
  parsed, options = Amocrm::WidgetBotContinueContinueParams.dump_request(params)
  bot_type =
    parsed.delete(:bot_type) do
      raise ArgumentError.new("missing required path argument #{_1}")
    end
  bot_id =
    parsed.delete(:bot_id) do
      raise ArgumentError.new("missing required path argument #{_1}")
    end
  @client.request(
    method: :post,
    path: ["api/v4/%1$s/%2$s/continue/%3$s", bot_type, bot_id, continue_id],
    body: parsed,
    model: Amocrm::Models::WidgetBotContinueContinueResponse,
    options: options
  )
end