Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

nylas-samples/python-account-tokeninfo

Repository files navigation

python-return-token_info

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".

Setup

System dependencies

  • Python v3.x

Gather environment variables

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

Install dependencies

$ pip3 install nylas

Usage

Run the script using the python3 command:

$ python3 ReturnTokenInfo.py

When this works succesfully you will be able to see all the token information

Learn more

Visit our Nylas Python SDK documentation to learn more. ...


Authors

  • @tayyabny - Tayyab Patel

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages