Skip to content

Commit 70932a8

Browse files
author
Aaron Gonzales
committed
adding ntoes about bearer tokens and authentication to credential handling section
1 parent adb45d4 commit 70932a8

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

README.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,15 @@ fields; Enterprise clients require ``username``, ``password``, and
5656
``endpoint``. If you do not specify the ``account_type``, we attempt to
5757
discern the account type and declare a warning about this behavior.
5858

59+
For premium search products, we are using app-only authentication and
60+
the bearer tokens are not delivered with an expiration time. They can be
61+
invalidated. Please see
62+
`here <https://developer.twitter.com/en/docs/basics/authentication/overview/application-only>`__
63+
for an overview of the premium authentication method.
64+
5965
We support both YAML-file based methods and environment variables for
60-
access, and provide flexible handling with sensible defaults.
66+
storing credentials, and provide flexible handling with sensible
67+
defaults.
6168

6269
YAML method
6370
-----------

examples/credential_handling.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"Premium clients will require the `bearer_token` and `endpoint` fields; Enterprise clients require `username`, `password`, and `endpoint`.\n",
1212
"If you do not specify the `account_type`, we attempt to discern the account type and declare a warning about this behavior.\n",
1313
"\n",
14-
"We support both YAML-file based methods and environment variables for access, and provide flexible handling with sensible defaults.\n",
14+
"For premium search products, we are using app-only authentication and the bearer tokens are not delivered with an expiration time. They can be invalidated. Please see [here](https://developer.twitter.com/en/docs/basics/authentication/overview/application-only) for an overview of the premium authentication method.\n",
15+
"\n",
16+
"We support both YAML-file based methods and environment variables for storing credentials, and provide flexible handling with sensible defaults.\n",
1517
"\n",
1618
"\n",
1719
"## YAML method\n",

examples/credential_handling.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ fields; Enterprise clients require ``username``, ``password``, and
1111
``endpoint``. If you do not specify the ``account_type``, we attempt to
1212
discern the account type and declare a warning about this behavior.
1313

14+
For premium search products, we are using app-only authentication and
15+
the bearer tokens are not delivered with an expiration time. They can be
16+
invalidated. Please see
17+
`here <https://developer.twitter.com/en/docs/basics/authentication/overview/application-only>`__
18+
for an overview of the premium authentication method.
19+
1420
We support both YAML-file based methods and environment variables for
15-
access, and provide flexible handling with sensible defaults.
21+
storing credentials, and provide flexible handling with sensible
22+
defaults.
1623

1724
YAML method
1825
-----------

0 commit comments

Comments
 (0)