79335816

Date: 2025-01-07 11:29:57
Score: 1.5
Natty:
Report link

I've tested this and it works:

# Create custom http client without ssl ceritificate validation
authorised_http = AuthorizedHttp(
    creds, httplib2.Http(disable_ssl_certificate_validation=True)
)
# Call the Gmail API
service = build("gmail", "v1", http=authorised_http)

Sources:

  1. The Gmail API docs for the build function: https://googleapis.github.io/google-api-python-client/docs/epy/googleapiclient.discovery-module.html#build
  2. The Gmail API python client source: https://github.com/googleapis/google-api-python-client/blob/main/googleapiclient/_auth.py#L100
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rookwood101