Skip to content

Instantly share code, notes, and snippets.

View jasmosez's full-sized avatar

James Schaffer jasmosez

View GitHub Profile
@jasmosez
jasmosez / token.rb
Last active January 28, 2020 20:14
def get_messages(daysago = 30, max_results = 500)
puts "here we go"
t1 = Time.now
after_date = daysago(daysago)
# Initialize the API
service = Google::Apis::GmailV1::GmailService.new
# service.client_options.application_name = APPLICATION_NAME
service.authorization = self.fresh_token