Sha256: 03c3a5d808f377e75f3f8986b566aa95bd00aaa4deb8bdf960166f944e006f6c
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
.. module:: twilio.rest.resources ================= Caller Ids ================= Validate a Phone Number ----------------------- Validating a phone number is quick and easy. .. code-block:: ruby require 'twilio-ruby' # To find these visit https://www.twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXX" auth_token = "YYYYYYYYYYYYYYYYYY" @client = Twilio::REST::Client.new account_sid, auth_token @response = @client.caller_ids.create("+44 9876543212") puts @response.validation_code Twilio will call the provided number and wait for the validation code to be entered. Delete a Phone Number --------------------- Deleting a phone number is quick and easy. .. code-block:: ruby require 'twilio-ruby' # To find these visit https://www.twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXX" auth_token = "YYYYYYYYYYYYYYYYYY" @client = Twilio::REST::Client.new account_sid, auth_token @response = @client.caller_ids.list(phone_number="+15555555555") @callerid = response[0] @callerid.delete()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twilio-ruby-3.11.0 | docs/usage/caller-ids.rst |