I am trying to use the Gmail API with the Python Google Client library.
I have created a Service Account credential through the Google Developer Console.
I a
Try using:
credentials = SignedJwtAssertionCredentials(client_email, private_key, 'https://www.googleapis.com/auth/gmail.readonly', sub='user@domain.com')
where user@domain.com is the user you wish to impersonate.