24 окт 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
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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 ..