Imports github.com/pkg/errors golang.org/x/net/context golang.org/x/oauth2 golang.org/x/oauth2/clientcredentials Standard library imports bytes crypto/tls encoding/json fmt io io/ioutil log net/http net/url reflect strconv strings time