Twitter-API-v2-sample-code icon indicating copy to clipboard operation
Twitter-API-v2-sample-code copied to clipboard

update in using env variable

Open 5war00p opened this issue 4 years ago • 2 comments

I found an issue while we are taking "BEARER_TOKEN" from .env by using os.environ.get("BEARER_TOKEN"). It show 401 because bearer_token was not passing exactly.

So by using this "pip install python-dotenv" module it works fine.

5war00p avatar Dec 26 '21 16:12 5war00p

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

github-actions[bot] avatar Dec 26 '21 16:12 github-actions[bot]

This resolved the 401 error for me. Thanks!

scott-gr avatar Jun 21 '22 16:06 scott-gr