[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread vanmulders1992
I've changed my code to use a normal POST request not using sendgrid libraries and that worked fine. Should have tried that sooner! On Tuesday, 29 November 2016 12:08:08 UTC-5, Tamás Gulácsi wrote: > > It seems that customClient.Do needs a http.Request, not your Request > (what's that?) > > ```

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread Tamás Gulácsi
It seems that customClient.Do needs a http.Request, not your Request (what's that?) ``` request, err := http.NewRequest("POST", "https://api.sendgrid/com/v3/mail/send";, strings.NewReader(` { "personalizations": [ { "to": [ {

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread vanmulders1992
I tried &request which gave me cannot use &request (type*Request) as type*http.Request in argument to customClient.Do On Monday, 28 November 2016 19:46:35 UTC-5, vanmuld...@gmail.com wrote: > > I'm running my API backend in Go on App Engine > > When a user creates an account, he gets sent an a

[go-nuts] Re: Sendgrid on App Engine urlfetch client instead of defaulthttp client

2016-11-29 Thread Val
Hi, note that there also exist a specialized group "google-appengine-go" : https://groups.google.com/forum/#!forum/google-appengine-go Tamás' answer looks good, good luck On Tuesday, November 29, 2016 at 1:46:35 AM UTC+1, vanmuld...@gmail.com wrote: > > I'm running my API backend in Go on App En