Class: Knockapi::Resources::Integrations::Hightouch

Inherits:
Object
  • Object
show all
Defined in:
lib/knockapi/resources/integrations/hightouch.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Hightouch

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 Hightouch.

Parameters:



38
39
40
# File 'lib/knockapi/resources/integrations/hightouch.rb', line 38

def initialize(client:)
  @client = client
end

Instance Method Details

#embedded_destination(id:, jsonrpc:, method_:, params: nil, request_options: {}) ⇒ Knockapi::Models::Integrations::HightouchEmbeddedDestinationResponse

Processes a Hightouch embedded destination RPC request.

Parameters:

  • id (String)

    The unique identifier for the RPC request.

  • jsonrpc (String)

    The JSON-RPC version.

  • method_ (String)

    The method name to execute.

  • params (Hash{Symbol=>Object})

    The parameters for the method.

  • request_options (Knockapi::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



24
25
26
27
28
29
30
31
32
33
# File 'lib/knockapi/resources/integrations/hightouch.rb', line 24

def embedded_destination(params)
  parsed, options = Knockapi::Integrations::HightouchEmbeddedDestinationParams.dump_request(params)
  @client.request(
    method: :post,
    path: "v1/integrations/hightouch/embedded-destination",
    body: parsed,
    model: Knockapi::Models::Integrations::HightouchEmbeddedDestinationResponse,
    options: options
  )
end