goext/googleapi
2023-12-01 18:33:04 +01:00
..
attachment.go google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
body.go google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
oAuth.go google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
README.md google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
sendMail.go google mail API [[[WIP]]] 2023-12-01 18:33:04 +01:00
service.go google mail API [[[WIP]]] 2023-12-01 18:33:04 +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