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
import requests | |
import json | |
import datetime | |
import time | |
# You can get your own token at: https://api.slack.com/custom-integrations/legacy-tokens | |
TOKEN = '' | |
# Timestamp of 60 days ago | |
ts_to = time.time() - 60 * 24 * 60 * 60 | |
# Number of files to return |