Skip to content

Instantly share code, notes, and snippets.

View maheshwarip's full-sized avatar

Pranshu Maheshwari maheshwarip

View GitHub Profile
@maheshwarip
maheshwarip / emails.py
Last active February 27, 2018 08:40
SimpleMoney email reading code
def get_gmail_messages_ind(access_token):
authorization = "Bearer "+access_token
headers = {'Authorization': authorization}
end_date = datetime.date.today() + datetime.timedelta(days=1)
end_date = date_tomorrow.strftime('%Y/%m/%d')
start_date = datetime.date.today() - datetime.timedelta(days=730)
start_date = date_yesterday.strftime('%Y/%m/%d')
# Getting the messages from RTAs, AMCs and depositories: