ShareShortcuts

Send an Email with SendGrid

9-ninja
Bifurcar “Send an Email with SendGrid”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que 9-ninja reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
74K
Guardado
2
Acciones
12
Categoría
API
Versión
1.0
Idioma
EN

Sends an e-mail via the SendGrid API

Documentation: SendGrid API

Requires an API-KEY from Sendgrid.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 19 de oct. de 2018

First release

Qué hace

12 acciones
  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 las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo 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 en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
24 de oct. 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 ..

Publicidad

Más de 9-ninja

Ver todo

También te puede gustar

Ver todo
Publicidad