Created
August 13, 2015 23:05
-
-
Save robbfitzsimmons/68a5f3e31a70fd1f714b to your computer and use it in GitHub Desktop.
Deleting Plaid Access Tokens in Bulk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from plaid import Client | |
Client.config({ | |
'url': 'https://api.plaid.com' | |
}) | |
# These are available on your account dashboard (https://www.plaid.com/account/#/). | |
client_id = "" | |
secret = "" | |
# There's no endpoint listed in the docs to retrieve access tokens, so you'll need to pull these from your database. | |
access_tokens = [] | |
# Now we just iterate through and delete everybody's token. | |
for access_token in access_tokens: | |
client = Client(client_id, secret, access_token) | |
client.connect_delete() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment