This sample will show you to easily return all token information
This will return a dictionary which will contain the follow:
- Created_at
- Scopes
- State
- Updated_at
You can follow along step-by-step in our blog post "How to Send Emails with the Nylas Python SDK".
- Python v3.x
You'll need the following values:
ACCESS_TOKEN = ""
CLIENT_ID = ""
CLIENT_SECRET = ""
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ pip3 install nylas
Run the script using the python3
command:
$ python3 ReturnTokenInfo.py
When this works succesfully you will be able to see all the token information
Visit our Nylas Python SDK documentation to learn more. ...
- @tayyabny - Tayyab Patel