Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d19aa79

Browse files
committed
Update TwilioClient docs for API Keys
1 parent 22b84cd commit d19aa79

File tree

7 files changed

+52
-17
lines changed

7 files changed

+52
-17
lines changed

twilio/rest/client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ class TwilioRestClient(TwilioClient):
3535
A client for accessing the Twilio REST API
3636
3737
:param str account: Your Account SID from `your dashboard
38-
<https://twilio.com/user/account>`_
38+
<https://twilio.com/user/account>`_ or your API Key SID from `your
39+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
3940
:param str token: Your Auth Token from `your dashboard
40-
<https://twilio.com/user/account>`_
41+
<https://twilio.com/user/account>`_ or your API Key token from `your
42+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
43+
:param str request_account: Your Account SID from `your dashboard
44+
<https://twilio.com/user/account>`_. This param is only necessary if
45+
using an API key to authenticate rather than Account Token.
4146
:param float timeout: The socket and read timeout for requests to Twilio
4247
"""
4348

twilio/rest/ip_messaging.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ class TwilioIpMessagingClient(TwilioClient):
1212
information, see the
1313
`IP Messaging API documentation <https://www.twilio.com/docs/XXX>`_.
1414
15-
:param str account: Your Account Sid from `your dashboard
16-
<https://www.twilio.com/user/account>`_
15+
:param str account: Your Account SID from `your dashboard
16+
<https://twilio.com/user/account>`_ or your API Key SID from `your
17+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
1718
:param str token: Your Auth Token from `your dashboard
18-
<https://www.twilio.com/user/account>`_
19+
<https://twilio.com/user/account>`_ or your API Key token from `your
20+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
21+
:param str request_account: Your Account SID from `your dashboard
22+
<https://twilio.com/user/account>`_. This param is only necessary if
23+
using an API key to authenticate rather than Account Token.
1924
:param float timeout: The socket and read timeout for requests to Twilio
2025
"""
2126

twilio/rest/lookups.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ class TwilioLookupsClient(TwilioClient):
1111
including non-Twilio numbers. For more information, see the
1212
`Lookups API documentation <https://www.twilio.com/docs/XXX>`_.
1313
14-
:param str account: Your Account Sid from `your dashboard
15-
<https://www.twilio.com/user/account>`_
14+
:param str account: Your Account SID from `your dashboard
15+
<https://twilio.com/user/account>`_ or your API Key SID from `your
16+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
1617
:param str token: Your Auth Token from `your dashboard
17-
<https://www.twilio.com/user/account>`_
18+
<https://twilio.com/user/account>`_ or your API Key token from `your
19+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
20+
:param str request_account: Your Account SID from `your dashboard
21+
<https://twilio.com/user/account>`_. This param is only necessary if
22+
using an API key to authenticate rather than Account Token.
1823
:param float timeout: The socket and read timeout for requests to Twilio
1924
"""
2025

twilio/rest/monitor.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ class TwilioMonitorClient(TwilioClient):
1212
information, see the
1313
`Monitor API documentation <https://www.twilio.com/docs/XXX>`_.
1414
15-
:param str account: Your Account Sid from `your dashboard
16-
<https://www.twilio.com/user/account>`_
15+
:param str account: Your Account SID from `your dashboard
16+
<https://twilio.com/user/account>`_ or your API Key SID from `your
17+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
1718
:param str token: Your Auth Token from `your dashboard
18-
<https://www.twilio.com/user/account>`_
19+
<https://twilio.com/user/account>`_ or your API Key token from `your
20+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
21+
:param str request_account: Your Account SID from `your dashboard
22+
<https://twilio.com/user/account>`_. This param is only necessary if
23+
using an API key to authenticate rather than Account Token.
1924
:param float timeout: The socket and read timeout for requests to Twilio
2025
"""
2126

twilio/rest/pricing.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ class TwilioPricingClient(TwilioClient):
1212
A client for accessing the Twilio Pricing API.
1313
1414
:param str account: Your Account SID from `your dashboard
15-
<https://twilio.com/user/account>`_
15+
<https://twilio.com/user/account>`_ or your API Key SID from `your
16+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
1617
:param str token: Your Auth Token from `your dashboard
17-
<https://twilio.com/user_account>`_
18+
<https://twilio.com/user/account>`_ or your API Key token from `your
19+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
20+
:param str request_account: Your Account SID from `your dashboard
21+
<https://twilio.com/user/account>`_. This param is only necessary if
22+
using an API key to authenticate rather than Account Token.
1823
:param float timeout: The socket connect and read timeout for requests
1924
to Twilio
2025
"""

twilio/rest/task_router.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ class TwilioTaskRouterClient(TwilioClient):
1717
A client for accessing the Twilio TaskRouter API
1818
1919
:param str account: Your Account SID from `your dashboard
20-
<https://twilio.com/user/account>`_
20+
<https://twilio.com/user/account>`_ or your API Key SID from `your
21+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
2122
:param str token: Your Auth Token from `your dashboard
22-
<https://twilio.com/user/account>`_
23+
<https://twilio.com/user/account>`_ or your API Key token from `your
24+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
25+
:param str request_account: Your Account SID from `your dashboard
26+
<https://twilio.com/user/account>`_. This param is only necessary if
27+
using an API key to authenticate rather than Account Token.
2328
:param float timeout: The socket and read timeout for requests to Twilio
2429
"""
2530

twilio/rest/trunking.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ class TwilioTrunkingClient(TwilioClient):
1414
A client for accessing the Twilio Trunking API
1515
1616
:param str account: Your Account SID from `your dashboard
17-
<https://twilio.com/user/account>`_
17+
<https://twilio.com/user/account>`_ or your API Key SID from `your
18+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
1819
:param str token: Your Auth Token from `your dashboard
19-
<https://twilio.com/user/account>`_
20+
<https://twilio.com/user/account>`_ or your API Key token from `your
21+
api key console <https://www.twilio.com/console/dev-tools/api-keys>`_
22+
:param str request_account: Your Account SID from `your dashboard
23+
<https://twilio.com/user/account>`_. This param is only necessary if
24+
using an API key to authenticate rather than Account Token.
2025
:param float timeout: The socket and read timeout for requests to Twilio
2126
"""
2227

0 commit comments

Comments
 (0)