Class: Telnyx::Resources::MessagingProfiles::Actions

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

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:



30
31
32
# File 'lib/telnyx/resources/messaging_profiles/actions.rb', line 30

def initialize(client:)
  @client = client
end

Instance Method Details

#regenerate_secret(id, request_options: {}) ⇒ Telnyx::Models::MessagingProfiles::ActionRegenerateSecretResponse

Regenerate the v1 secret for a messaging profile.

Parameters:

  • id (String)

    The identifier of the messaging profile.

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

Returns:

See Also:



18
19
20
21
22
23
24
25
# File 'lib/telnyx/resources/messaging_profiles/actions.rb', line 18

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