Class: HubSpotSDK::Resources::Crm::Extensions::Calling::Transcripts

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Transcripts

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

Parameters:



109
110
111
# File 'lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb', line 109

def initialize(client:)
  @client = client
end

Instance Method Details

#create(engagement_id:, transcript_create_utterances:, request_options: {}) ⇒ HubSpotSDK::Models::Crm::Extensions::Calling::TranscriptCreateResponse



18
19
20
21
22
23
24
25
26
27
# File 'lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb', line 18

def create(params)
  parsed, options = HubSpotSDK::Crm::Extensions::Calling::TranscriptCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "crm/extensions/calling/2026-03/transcripts",
    body: parsed,
    model: HubSpotSDK::Crm::Extensions::Calling::TranscriptCreateResponse,
    options: options
  )
end

#create_inbound_call(create_engagement:, engagement_properties:, external_call_id:, final_call_status:, from_number:, potential_recipient_user_ids:, to_number:, call_started_timestamp: nil, duration_seconds: nil, user_id: nil, request_options: {}) ⇒ HubSpotSDK::Models::Crm::Extensions::CompletedThirdPartyCallResponse

Some parameter documentations has been truncated, see Models::Crm::Extensions::Calling::TranscriptCreateInboundCallParams for more details.

Parameters:

Returns:

See Also:



77
78
79
80
81
82
83
84
85
86
87
# File 'lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb', line 77

def create_inbound_call(params)
  parsed, options =
    HubSpotSDK::Crm::Extensions::Calling::TranscriptCreateInboundCallParams.dump_request(params)
  @client.request(
    method: :post,
    path: "crm/extensions/calling/2026-03/inbound-call",
    body: parsed,
    model: HubSpotSDK::Crm::Extensions::CompletedThirdPartyCallResponse,
    options: options
  )
end

#delete(transcript_id, request_options: {}) ⇒ nil

Parameters:

Returns:

  • (nil)

See Also:



37
38
39
40
41
42
43
44
# File 'lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb', line 37

def delete(transcript_id, params = {})
  @client.request(
    method: :delete,
    path: ["crm/extensions/calling/2026-03/transcripts/%1$s", transcript_id],
    model: NilClass,
    options: params[:request_options]
  )
end

#get(transcript_id, request_options: {}) ⇒ HubSpotSDK::Models::Crm::Extensions::Calling::TranscriptResponse

Parameters:

Returns:

See Also:



97
98
99
100
101
102
103
104
# File 'lib/hubspot_sdk/resources/crm/extensions/calling/transcripts.rb', line 97

def get(transcript_id, params = {})
  @client.request(
    method: :get,
    path: ["crm/extensions/calling/2026-03/transcripts/%1$s", transcript_id],
    model: HubSpotSDK::Crm::Extensions::Calling::TranscriptResponse,
    options: params[:request_options]
  )
end