Upgrade to Pro — share decks privately, control downloads, hide ads and more …

go-gmail-drafts

 go-gmail-drafts

Yoshiki Nakagawa

January 22, 2016
Tweet

More Decks by Yoshiki Nakagawa

Other Decks in Technology

Transcript

  1. Google APIs Client Library for Go GitHub : https://github.com/google/google-api-go-client/ Enable

    to access google APIs - Gmail API - BigQuery API - Calendar API etc...
  2. Why not Google Apps Script ? Apps Script is not

    enough... Can't create drafts. (only get drafts) So use Google APIs Client Library ! Other languages libraries : https://developers.google.com/discovery/libraries All Libraries are open-sourced !
  3. How to ̍. go get $ go get github.com/yyoshiki41/go-gmail-drafts $

    cd $GOPATH/src/github.com/yyoshiki41/go-gmail-drafts ̎. μ΢ϯϩʔυͨ͠jsonϑΝΠϧΛઃஔɻ $ mv ~/Downloads/clientid.json config/clientsecret.json