title: HTTPError: HTTP Error 401: Unauthorized for sendgrid integration with python
body: <pre><code>def sendEmail(to,apNumber,paperType,zipedFile):
  
      sg = sendgrid.SendGridAPIClient(apikey=os.environ.get("API-KEY"))
  
      to_email = mail.Email( "to@email.com")
      from_email = mail.Email( "from@email.com" )
      subject = 'This is a test email'
      content = mail.Content('text/plain', 'Example message.')
      message = mail.Mail(from_email, subject, to_email, content)
      response = sg.client.mail.send.post(request_body = message.get())
      return response
  </code></pre>