24 de out de 2018
sarahnhahs
Thank so much @9-ninja! I would like to ask if it is possible to add an attachment from the files App ..
First release
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#include 'actions/web'
#define color darkblue
#define glyph magicWand
@SendGridAPIKey = "Put your SendGrid API Key here"
prompt("What's the subject of the email?")
@Subject = nil
prompt("What's the email address you want to send to?")
@ToEmail = nil
prompt("What email is this message coming from?")
@FromEmail = nil
prompt("What is the body of the email?")
@ContentHTML = nil
url("https://api.sendgrid.com/v3/mail/send")
fileRequest("", "POST", {
"authorization": "Bearer {@SendGridAPIKey}",
"content-type": "application/json"
})
Thank so much @9-ninja! I would like to ask if it is possible to add an attachment from the files App ..