goext/googleapi
Mike Schwörer 358c238f3d
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m28s
google mail API [[FIN]]
2023-12-04 13:55:41 +01:00
..
attachment.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
body.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
mimeMessage_test.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
mimeMessage.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
oAuth.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
README.md google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
sendMail_test.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
sendMail.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00
service.go google mail API [[FIN]] 2023-12-04 13:55:41 +01:00

Google OAuth Setup (to send mails)

curl --request POST \
  --url https://oauth2.googleapis.com/token \
  --data code={...} \
  --data redirect_uri=http://localhost/oauth \
  --data client_id={...} \
  --data client_secret={...} \
  --data grant_type=authorization_code \
  --data scope=https://www.googleapis.com/auth/gmail.send
  • Fertig, mit client_id, client_secret und refresh_token kann das package benutzt werden