Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Os aplicativos no App Engine podem usar empresas terceirizadas para enviar e-mails, mensagens SMS ou fazer e receber chamadas telefônicas. É possível, por exemplo, enviar um e-mail para confirmar transações comerciais e criação de contas de usuário ou enviar comunicações de marketing.
Esta página lista alguns exemplos de empresas que fornecem serviços de comunicação
e bibliotecas de clientes para aplicativos no App Engine.
Mailgun
O Mailgun oferece APIs RESTful e bibliotecas de cliente para enviar e-mails, além de uma cota gratuita para usuários de projetos. Consulte a calculadora de preços mensais na
página de inscrição
para ver os preços de mais mensagens e descontos por volume.
É possível SendGrid (em inglês) para aprimorar o envio de e-mails no App Engine. O SendGrid melhora sua capacidade de entrega e permite transparência sobre o processo de envio de e-mails pelo app. Veja estatísticas de aberturas, cliques, cancelamento de inscrições, relatórios de spam e muito mais na interface ou na API SendGrid.
Os clientes do App Engine podem aproveitar uma cota gratuita ao se inscrever
no plano da API SendGrid Email usando o console Google Cloud . O Google é remunerado por clientes que se inscrevem em uma conta paga.
Use o Twilio para incorporar serviços de voz, VoIP e mensagens em aplicativos. A plataforma Twilio é composta pela Twilio Markup Language (TwiML), uma API RESTfule por SDKs VoIP para navegadores da Web, Android e iOS.
Como adicionar bibliotecas de cliente e chaves de API de terceiros ao seu aplicativo
Para disponibilizar as bibliotecas de cliente nos ambientes de desenvolvimento e implantação do App Engine, especifique a biblioteca como uma dependência.
Por exemplo, para especificar dependências para o ambiente de execução do Node.js,
consulte aqui.
A maioria dos serviços de terceiros usa chaves de API para autenticar seu aplicativo. Você gera as chaves no site de terceiros. Para usar as chaves de API de terceiros no seu app:
Para ambientes fora da produção, você pode armazenar a chave em uma
variável de ambiente. Qualquer pessoa com acesso ao arquivo app.yaml também pode acessar sua chave.
Para armazenar a chave ou o valor da chave criptografada em uma variável de ambiente:
Adicione a chave ou o valor criptografado da chave à seção de variáveis de ambiente no
arquivo app.yaml do aplicativo.
Por exemplo:
env_variables:
EMAIL_API_KEY: key-from-third-party OR encrypted-key
Se você estiver usando o ambiente de execução do .NET, adicione a chave às variáveis de configuração no arquivo appsettings.json do seu aplicativo. Se
você estiver usando o ambiente de execução do Node.js, adicione a chave às variáveis de configuração na seção de variáveis de ambiente do app no arquivo app.flexible.yaml.
No código do app, recupere a chave ou a chave criptografada das variáveis
de ambiente.
Por exemplo, se você estiver usando o ambiente de execução do Python:
EMAIL_API_KEY = os.environ['EMAIL_API_KEY']
Transmita a chave conforme exigido pela API de terceiros. Descriptografe a chave se você a criptografou anteriormente.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eApp Engine allows the use of third-party services for email, SMS, and phone communication, with providers such as Mailgun, Mailjet, SendGrid, and Twilio.\u003c/p\u003e\n"],["\u003cp\u003eMailgun, Mailjet, and SendGrid are third-party email services that offer free quotas and provide RESTful APIs and client libraries to App Engine users.\u003c/p\u003e\n"],["\u003cp\u003eTwilio provides SMS, voice, and VoIP services via TwiML, RESTful API, and SDKs, allowing developers to integrate these features into their App Engine applications.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries from these third-party services can be added to an App Engine app as dependencies.\u003c/p\u003e\n"],["\u003cp\u003eAPI keys from these third-party services should be stored securely using methods such as the Secret Manager or Cloud Key Management Service, or in the app.yaml file's environment variables for non-production environments.\u003c/p\u003e\n"]]],[],null,["# Sending messages with third-party services\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nApp Engine apps can use third-party companies to send email, SMS messages,\nor make and receive phone calls. For example, you might send email to confirm\nbusiness transactions, confirm the creation of user accounts, or send marketing\ncommunications.\n\nThis page lists some examples of companies that provide communication services\nand client libraries for App Engine apps.\n| **Note:** The services offered by these third-party companies are not covered by the [App Engine Service Level Agreement](/appengine/sla).\n\nMailgun\n-------\n\n[Mailgun](https://www.mailgun.com/) provides\nboth RESTful APIs and client libraries for sending email, along with a free\nquota for all users. See the monthly pricing calculator on\n[the sign up page](http://www.mailgun.com/google)\nfor pricing on additional messages and volume discounts.\n\nLearn more about Mailgun:\n\n- [Mailgun developer documentation](https://documentation.mailgun.com)\n- [Mailgun client libraries](https://documentation.mailgun.com/en/latest/libraries.html#libraries)\n\nMailjet\n-------\n\n[Mailjet](https://www.mailjet.com/google/?p=google)\nis a global email service that offers a free quota for App Engine users.\nTo take advantage of this offer, click the following link to\n[Create a Mailjet account](https://www.mailjet.com/google/?p=google).\n\nLearn more about Mailjet:\n\n- [Mailjet developer documentation](https://dev.mailjet.com/email/guides/getting-started/)\n- [Mailjet client libraries](https://dev.mailjet.com/email/guides/libraries/)\n\nSendGrid\n--------\n\nYou can use [SendGrid](https://sendgrid.com/)\nto power your emails on App Engine. SendGrid can improve your\ndeliverability and provide transparency into what actually happens to those\nemails your app sends. You can see statistics on opens, clicks, unsubscribes,\nspam reports and more with the SendGrid interface or its API.\n\nApp Engine customers can take advantage of a free quota by signing up\nfor the [SendGrid Email API plan](https://console.cloud.google.com/launcher/details/sendgrid-app/sendgrid-email) through the Google Cloud console. Note that\nGoogle is compensated for customers who sign up for a paid account.\n\nLearn more about SendGrid:\n\n- [SendGrid developer documentation](https://sendgrid.com/docs/for-developers/)\n- [SendGrid client libraries](https://sendgrid.com/docs/Integrate/libraries.html)\n\nSMS and Voice Services via Twilio\n---------------------------------\n\nYou can use Twilio to embed voice, VoIP, and messaging into applications. The\nTwilio platform consists of the [Twilio Markup Language (TwiML)](http://www.twilio.com/docs/api/twiml),\na [RESTful API](http://www.twilio.com/docs/api/rest),\nand VoIP SDKs for web browsers, Android, and iOS.\n\nLearn more about Twilio:\n\n- [Twilio developer documentation](https://www.twilio.com/docs/)\n- [Twilio client libraries](http://www.twilio.com/docs/libraries)\n\nAdding client libraries and third-party API keys to your app\n------------------------------------------------------------\n\nTo make client libraries available in your App Engine development\nand deployment environments, specify the library as a dependency.\nFor example, to specify dependencies for the Node.js runtime,\nsee [here](/appengine/docs/flexible/nodejs/specifying-dependencies).\n\nMost third party services use API keys to authenticate your app. You generate\nthe keys on the third-party's site. To use the third-party API keys in your app:\n\n1. Store the API keys in the [Secret Manager](/secret-manager/docs/overview) and\n [fetch the key securely](/secret-manager/docs/create-secret-quickstart) at\n instance start time.\n\n2. Encrypt the key with [Cloud Key Management Service](/kms/docs/key-management-service), store\n the encrypted key in an environment variable, and\n [decrypt it programmatically](/kms/docs/encrypt-decrypt) at instance start time.\n\n3. For non-production environments, you can store the key itself in an\n environment variable. Note that anyone with access to your `app.yaml` file\n can also access your key.\n\nTo learn about the advantages of each\napproach, see [Choosing a secret management\nsolution](/kms/docs/secret-management#choosing_a_secret_management_solution)\n\nTo store the key, or encrypted key value in an environment variable:\n\n1. Add the key or encrypted key value to the environment variables section in\n your app's `app.yaml` file.\n\n For example: \n\n env_variables:\n EMAIL_API_KEY: key-from-third-party OR encrypted-key\n\n If you are using the .NET runtime, add the key to the configuration variables in your app's `appsettings.json` file. If you\n are using the Node.js runtime, add the key to the configuration variables in your app's environment variables section in your app's `app.flexible.yaml` file.\n\n2. In your app's code, retrieve the key or encrypted key from your environment\n variables.\n\n For example, if you are using the Python runtime: \n\n EMAIL_API_KEY = os.environ['EMAIL_API_KEY']\n\n3. Pass the key as required by the third party's API. Ensure you\n [decrypt the key](/kms/docs/encrypt-decrypt) if you encrypted it previously."]]