go-samples
go-samples
go-samples | go-samples | |
---|---|---|
1 | 2 | |
168 | 208 | |
- | 1.0% | |
10.0 | 0.0 | |
over 1 year ago | 3 months ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-samples
-
Send Emails with Gmail API
Code sample for Go
go-samples
-
GitHub - jacobalberty/smtpoauth2: Go net/smtp Auth provider for oauth2
I've seen mention of oauth2 for smtp being needed a couple times here so I finally took a look. I wanted to keep it dependency free so this only handles the smtp auth side of things. You will need a separate piece of software to handle the oauth2 token generation. I used this to generate my token.json and there's an example of using token.json to send an email in the smtpoauth2 repo.
-
SMTP/OAUTH2 to send email via gmail
You'll need to setup your oauth2 credentials.json and then use a tool like this to generate the token.json see sendmail in my repository for an example that loads token.json and sends an email.
What are some alternatives?
node-samples - Node samples for Google Workspace APIs.
gsm - GSM - Manage Google Workspace resources using a developer-friendly CLI written in Go.
google-api-ruby-client - REST client for Google APIs
gmail-oauth2-tools - Tools and sample code for authenticating to Gmail with OAuth2
ruby-samples - 💎 Ruby samples for Google Workspace APIs
reisen - A simple library to extract video and audio frames from media containers (based on libav).
google-api-objectivec-client-for-rest - Google APIs Client Library for Objective-C for REST
golang-samples - Sample apps and code written for Google Cloud in the Go programming language.
google-api-java-client - Google APIs Client Library for Java
smtpoauth2 - Go net/smtp Auth provider for oauth2
dotnet-samples - .NET samples for Google Workspace APIs
browser-samples - Web samples for Google Workspace APIs