Class: Twilio::REST::IpMessaging

Inherits:
IpMessagingBase show all
Defined in:
lib/twilio-ruby/rest/ip_messaging.rb,
lib/twilio-ruby/rest/ip_messaging/v1.rb,
lib/twilio-ruby/rest/ip_messaging/v2.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service.rb,
lib/twilio-ruby/rest/ip_messaging/v1/credential.rb,
lib/twilio-ruby/rest/ip_messaging/v2/credential.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb,
lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb,
lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb

Defined Under Namespace

Classes: V1, V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from IpMessagingBase

#initialize, #to_s, #v1, #v2

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::IpMessagingBase

Instance Method Details

#credentials(sid = :unset) ⇒ Twilio::REST::Ip_messaging::V2::CredentialInstance, Twilio::REST::Ip_messaging::V2::CredentialList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:

  • (Twilio::REST::Ip_messaging::V2::CredentialInstance)

    if sid was passed.

  • (Twilio::REST::Ip_messaging::V2::CredentialList)


8
9
10
11
# File 'lib/twilio-ruby/rest/ip_messaging.rb', line 8

def credentials(sid=:unset)
  warn "credentials is deprecated. Use v2.credentials instead."
  self.v2.credentials(sid)
end

#services(sid = :unset) ⇒ Twilio::REST::Ip_messaging::V2::ServiceInstance, Twilio::REST::Ip_messaging::V2::ServiceList

Parameters:

  • sid (String) (defaults to: :unset)

    The sid

Returns:

  • (Twilio::REST::Ip_messaging::V2::ServiceInstance)

    if sid was passed.

  • (Twilio::REST::Ip_messaging::V2::ServiceList)


17
18
19
20
# File 'lib/twilio-ruby/rest/ip_messaging.rb', line 17

def services(sid=:unset)
  warn "services is deprecated. Use v2.services instead."
  self.v2.services(sid)
end