| Class | SmsOnRails::ServiceProviders::Base |
| In: |
lib/sms_on_rails/service_providers/base.rb
|
| Parent: | Object |
Locate the service provider object by provider_id, string, symbol, or ServiceProvider object Defaults to the default service provider
SmsOnRails::ServiceProviders::Base.get_service_provider :dummy SmsOnRails::ServiceProviders::Base.get_service_provider 1 SmsOnRails::ServiceProviders::Base.get_service_provider SmsOnRails::ServiceProviders::Dummy
Locate the service provider by provider id
Example: SmsOnRails::ServiceProviders::Base.provider_by_id 1
Locate the service provider by name or symbol
Example: SmsOnRails::ServiceProviders::Base.provider_by_name :dummy
Sends a message to a phone number directly to the provider. No validations are performed
Send an Sms with validation sms is an sms active record object that responds to phone_number and full_message
Refer to send_to_phone for more infomation on validation
Sends a message to a phone number active record object or string and performs validation on the phone_number
:skip_validation - skips validation and sends the message directly to the provider
Raise an exception if the white list is being used (only sends to people on this list) and this phone number is not on the list