Class: Telnyx::Resources::MessagingProfiles::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::MessagingProfiles::Actions
- Defined in:
- lib/telnyx/resources/messaging_profiles/actions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
-
#regenerate_secret(id, request_options: {}) ⇒ Telnyx::Models::MessagingProfiles::ActionRegenerateSecretResponse
Regenerate the v1 secret for a messaging profile.
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.
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.
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 |