Class: Telnyx::Resources::Messaging10dlc::Campaign::Osr

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/messaging_10dlc/campaign/osr.rb

Overview

Campaign operations

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Osr

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

Parameters:



31
32
33
# File 'lib/telnyx/resources/messaging_10dlc/campaign/osr.rb', line 31

def initialize(client:)
  @client = client
end

Instance Method Details

#get_attributes(campaign_id, request_options: {}) ⇒ Hash{Symbol=>Object}

Get OSR campaign attributes

Parameters:

Returns:

  • (Hash{Symbol=>Object})

See Also:



19
20
21
22
23
24
25
26
# File 'lib/telnyx/resources/messaging_10dlc/campaign/osr.rb', line 19

def get_attributes(campaign_id, params = {})
  @client.request(
    method: :get,
    path: ["10dlc/campaign/%1$s/osr/attributes", campaign_id],
    model: Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown],
    options: params[:request_options]
  )
end