Class: Telnyx::Resources::Whatsapp

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/whatsapp.rb,
lib/telnyx/resources/whatsapp/templates.rb,
lib/telnyx/resources/whatsapp/user_data.rb,
lib/telnyx/resources/whatsapp/phone_numbers.rb,
lib/telnyx/resources/whatsapp/business_accounts.rb,
lib/telnyx/resources/whatsapp/phone_numbers/profile.rb,
lib/telnyx/resources/whatsapp/business_accounts/settings.rb,
lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb,
lib/telnyx/resources/whatsapp/phone_numbers/calling_settings.rb,
lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb

Defined Under Namespace

Classes: BusinessAccounts, PhoneNumbers, Templates, UserData

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Whatsapp

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

Parameters:



25
26
27
28
29
30
31
# File 'lib/telnyx/resources/whatsapp.rb', line 25

def initialize(client:)
  @client = client
  @business_accounts = Telnyx::Resources::Whatsapp::BusinessAccounts.new(client: client)
  @templates = Telnyx::Resources::Whatsapp::Templates.new(client: client)
  @phone_numbers = Telnyx::Resources::Whatsapp::PhoneNumbers.new(client: client)
  @user_data = Telnyx::Resources::Whatsapp::UserData.new(client: client)
end

Instance Attribute Details

#business_accountsTelnyx::Resources::Whatsapp::BusinessAccounts (readonly)

Manage Whatsapp business accounts



8
9
10
# File 'lib/telnyx/resources/whatsapp.rb', line 8

def business_accounts
  @business_accounts
end

#phone_numbersTelnyx::Resources::Whatsapp::PhoneNumbers (readonly)

Manage Whatsapp phone numbers



16
17
18
# File 'lib/telnyx/resources/whatsapp.rb', line 16

def phone_numbers
  @phone_numbers
end

#templatesTelnyx::Resources::Whatsapp::Templates (readonly)

Manage Whatsapp message templates



12
13
14
# File 'lib/telnyx/resources/whatsapp.rb', line 12

def templates
  @templates
end

#user_dataTelnyx::Resources::Whatsapp::UserData (readonly)

Manage Whatsapp business accounts



20
21
22
# File 'lib/telnyx/resources/whatsapp.rb', line 20

def user_data
  @user_data
end