We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2981b20 commit 9f916ecCopy full SHA for 9f916ec
1 file changed
Twitter_API/code.py
@@ -75,9 +75,7 @@ def get_bearer_token():
75
76
bearer_token = get_bearer_token()
77
78
-#pylint:disable=protected-access
79
-pyportal._headers = {'Authorization': 'Bearer ' + bearer_token}
80
-#pylint:enable=protected-access
+pyportal.set_headers({'Authorization': 'Bearer ' + bearer_token})
81
82
while True:
83
pyportal.fetch()
0 commit comments