Class: Nexmo::Redact

Inherits:
Namespace
  • Object
show all
Defined in:
lib/nexmo/redact.rb

Instance Method Summary collapse

Instance Method Details

#transaction(params) ⇒ Response

Redact a specific message.

Examples:

response = client.redact.transaction(id: '00A0B0C0', product: 'sms')

Parameters:

  • params (Hash)

Options Hash (params):

  • :id (required, String)

    The transaction ID to redact.

  • :product (required, String)

    Product name that the ID provided relates to.

  • :type (required, String)

    Required if redacting SMS data.

Returns:

See Also:


29
30
31
# File 'lib/nexmo/redact.rb', line 29

def transaction(params)
  request('/v1/redact/transaction', params: params, type: Post)
end