I'm creating a forwarding address for my Gmail account with Gmail API. I know that if function
service.users().settings().forwardingAddresses().create(userId='me', body=address).execute()
returns a result with a verificationStatus
of pending
, the recipient has to verify the email with a link or a verification code.
I can enter the verification code here in Gmail Settings>Forwarding
, but is there a way where I can enter the verification code with the Gmail API?