Hi John, Thanks for your message. The main difference with my implementation is that I use a service account which is authorized to send messages on my behalf...and I think that this is where lies the problem.
As i understand OAuth and the implementation from your exemple, a token is generated and could (will) need to be refreshed, requiring a human interaction (copy past a token from a UrL). Using a service account allows a full server-to-server flow. Please correct me if I am mistaken! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/000aabd3-fb2c-420b-9293-1683ea3e312bo%40googlegroups.com.