How do I send email via the Gmail API? Go

I'm trying to send email via the gmail API using Go , but I find the documentation is buggy / confusing enough. This time I don't see the receipt or email body fields.

I don't need to download anything, so I find Easy Download, Multi- page Download, Resumable Download Methods completely useless. Is there a clear demo (with the data / parameters required by the cURL payload for example)?

As a side note, I'm not sure if I'm the only one thinking about this, but the google apis seems to be quite the worst (in terms of usability) if there is no library available. The Gmail API seems like a good candidate.

+3


source to share


1 answer


You can directly use the Go library for the GMail API:
http://godoc.org/code.google.com/p/google-api-go-client/gmail/v1



(You have even simpler libraries like SlyMarbo / gmail or njern / gogmail )

+3


source







All Articles