Class: Telnyx::Resources::CredentialConnections::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/credential_connections/actions.rb

Overview

Credential connection operations

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

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

Parameters:



33
34
35
# File 'lib/telnyx/resources/credential_connections/actions.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#check_registration_status(id, request_options: {}) ⇒ Telnyx::Models::CredentialConnections::ActionCheckRegistrationStatusResponse

Checks the registration_status for a credential connection, (‘registration_status`) as well as the timestamp for the last SIP registration event (`registration_status_updated_at`)

Parameters:

  • id (String)

    Identifies the resource.

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

Returns:

See Also:



21
22
23
24
25
26
27
28
# File 'lib/telnyx/resources/credential_connections/actions.rb', line 21

def check_registration_status(id, params = {})
  @client.request(
    method: :post,
    path: ["credential_connections/%1$s/actions/check_registration_status", id],
    model: Telnyx::Models::CredentialConnections::ActionCheckRegistrationStatusResponse,
    options: params[:request_options]
  )
end