Oct 03
Laurent G CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 13:08
Laurent G
CURL to Lasso 8.6 conversion (sendgrid API)
Hi,
Sendgrid has a useful API, as other email services, but I cannot
convert this one properly :
curl --request POST \ --url https://api.sendgrid.com/v3/mail/send \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"personalizations": [{"to": [{"email":
"your.email@example.com"}]}],"from": {"email":
"example@example.com"},"subject": "Hello, World!","content": [{"type":
"text/plain", "value": "Heya!"}]}'
Converted to :
var('sendtest')=Include_URL('https://api.sendgrid.com/v3/mail/send',
-SendMIMEHeaders=Array('"Authorization: Bearer
YOUR_API_KEY"','Content-Type: application/json'),
-POSTParams='{"personalizations": [{"to": [{"email":
"your.email@example.com"}]}],"from": {"email":
"example@example.com"},"subject": "Hello, World!","content": [{"type":
"text/plain", "value": "Heya!"}]}');
Result : {"errors":[{"message":"Permission denied, wrong
credentials","field":null,"help":null}]}
Of course my credentials work because I've tested this curl sequence
into my terminal and my message is sent.
Laurent
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Oct 03
Kevin Bice Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 12:25
Kevin Bice
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 14:26
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Kevin Bice Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 13:50
Kevin Bice
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Steve Piercy - Website Builder Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 12:08
Steve Piercy - Website Builder
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 15:23
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 15:35
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Steve Piercy - Website Builder Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 12:37
Steve Piercy - Website Builder
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 15:40
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 15:48
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Steve Piercy - Website Builder Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 13:13
Steve Piercy - Website Builder
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Steve Piercy - Website Builder Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 13:16
Steve Piercy - Website Builder
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03
Laurent G Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 03, 2017; 16:23
Laurent G
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04
Johan Solve Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04, 2017; 09:04
Johan Solve
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04
Bil Corry Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04, 2017; 06:58
Bil Corry
Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04
Johan Solve Re: CURL to Lasso 8.6 conversion (sendgrid API)
Oct 04, 2017; 19:44
Johan Solve
Re: CURL to Lasso 8.6 conversion (sendgrid API)