ShareShortcuts

Send an Email with SendGrid

9-ninja
Fazer fork de “Send an Email with SendGrid”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que 9-ninja receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
74K
Salvo
2
Ações
12
Categoria
API
Versão
1.0
Idioma
EN

Sends an e-mail via the SendGrid API

Documentation: SendGrid API

Requires an API-KEY from Sendgrid.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 19 de out de 2018

First release

O que ele faz

12 ações
  1. Text
  2. Set Variable
    SendGridAPIKey
  3. Ask for Input
    What's the subject of the email?
  4. Set Variable
    Subject
  5. Ask for Input
    What's the email address you want to send to?
  6. Set Variable
    ToEmail
  7. Ask for Input
    What email is this message coming from?
  8. Set Variable
    FromEmail
  9. Ask for Input
    What is the body of the email?
  10. Set Variable
    ContentHTML
  11. URL
    https://api.sendgrid.com/v3/mail/send
  12. Get Contents of URL

Ver como código
Beta

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"
})
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
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 ..

Publicidade

Mais de 9-ninja

Ver tudo

Você também pode gostar

Ver tudo
Publicidade