8000 docs: usage: caller-ids: add a delete example · Stackdriver/twilio-python@dfe6aa6 · GitHub
[go: up one dir, main page]

Skip to content 8000
This repository was archived by the owner on Feb 1, 2018. It is now read-only.

Commit dfe6aa6

Browse files
committed
docs: usage: caller-ids: add a delete example
The Twilio-python docs are not clear on how to delete a callerID so I added an example http://twilio-python.readthedocs.org/en/latest/api/rest/resources.html#caller-ids
1 parent 164d8fc commit dfe6aa6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/usage/caller-ids.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,20 @@ Validating a phone number is quick and easy.
2424
Twilio will call the provided number and wait for the validation code to be
2525
entered.
2626

27+
Delete a Phone Number
28+
---------------------
29+
30+
Deleting a phone number is quick and easy.
31+
32+
.. code-block:: python
33+
34+
from twilio.rest import TwilioRestClient
35+
36+
# To find these visit https://www.twilio.com/user/account
37+
account = "ACXXXXXXXXXXXXXXXXX"
38+
token = "YYYYYYYYYYYYYYYYYY"
39+
client = TwilioRestClient(account, token)
40+
41+
response = client.caller_ids.list(phone_number="+15555555555")
42+
callerid = response[0]
43+
print callerid.delete()

0 commit comments

Comments
 (0)
0