Correio temporário
Caixas de entrada descartáveis para um registo ou um teste.
Ferramentas de correio temporário
| Ferramenta | O que faz |
|---|---|
| listTempMailDomains | Os domínios em que é possível criar uma caixa temporária. |
| createTempInbox | Um endereço descartável novo e o token da caixa que lhe dá acesso. Guarde o token: todas as outras ferramentas de correio temporário precisam dele. |
| getTempInbox | O endereço de uma caixa, quando expira, quantas extensões restam e quantas mensagens contém. |
| listTempMessages | As mensagens que uma caixa recebeu, as mais recentes primeiro, com remetente, assunto, hora de chegada e um excerto. |
| readTempMessage | Uma mensagem com o seu texto, e o seu código de acesso quando é um email de verificação e o OpenEmail tem a certeza do código. |
| extendTempInbox | Mantém uma caixa aberta durante mais tempo. Devolve um token novo, a usar a partir daí. |
| deleteTempMessage | Elimina de vez uma mensagem de uma caixa. |
| deleteTempInbox | Fecha uma caixa de imediato e elimina tudo o que recebeu. |
São as caixas de entrada descartáveis gratuitas do site do OpenEmail. Uma caixa não pertence a nenhum espaço de trabalho e abre-se com o seu próprio token, por isso as ferramentas não precisam de nenhuma permissão e o token é a única chave. Quem o tiver pode ler a caixa.
O correio enviado para o endereço é guardado durante um dia, no máximo. Um nome escolhido pode ser adivinhado e outra pessoa fica com ele assim que a caixa expira, por isso deixe localPart de fora para obter um aleatório.
Referência
listTempMailDomains
List the domains a temporary inbox can be made on, the free disposable addresses of the OpenEmail website. A temporary inbox belongs to no workspace and opens with its own token.
Entradas
Não recebe entradas.
Também disponível em
createTempInbox
Make a temporary inbox: a disposable address that receives mail for a while, for a sign-up or a test, without touching the workspace. Returns the address and an inbox token that every other temporary mail tool needs, so keep it. Read what arrives with listTempMessages and readTempMessage, which also gives the sign-in code of a verification email. The inbox lasts an hour by default and at most 1440 minutes in all.
Entradas
domainstringOne of the domains listTempMailDomains names. Defaults to the first.
Até 253 caractereslocalPartstringThe part before the @. Leave it out for a random one: a chosen name can be guessed and is taken by somebody else once the inbox expires.
Até 64 caracteresttlMinutesintegerHow long the inbox lasts, in minutes.
Pelo menos 1No máximo 1440
Também disponível em
- API
POST /temp-mail/inboxes- TypeScript
tempMail.create()- Python
temp_mail.create()- Ruby
temp_mail.create- PHP
tempMail->create
getTempInbox
Read a temporary inbox: its address, when it expires, how many extensions are left and how many messages it holds.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caracteres
Também disponível em
- API
GET /temp-mail/inboxes/{id}GET /temp-mail/inboxes/{id}/messages- TypeScript
tempMail.get()tempMail.listMessages()tempMail.listAllMessages()tempMail.iterateMessages()- Python
temp_mail.get()temp_mail.list_messages()temp_mail.list_all_messages()temp_mail.iterate_messages()- Ruby
temp_mail.gettemp_mail.list_messagestemp_mail.list_all_messagestemp_mail.iterate_messages- PHP
tempMail->gettempMail->listMessagestempMail->listAllMessagestempMail->iterateMessages
listTempMessages
List the messages a temporary inbox has received, newest first: id, sender, subject, when it arrived and a snippet.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caractereslimitintegerHow many messages to return.
Pelo menos 1No máximo 50cursorstringThe next cursor of the previous page.
De 1 a 512 caracteres
Também disponível em
- API
GET /temp-mail/inboxes/{id}GET /temp-mail/inboxes/{id}/messages- TypeScript
tempMail.get()tempMail.listMessages()tempMail.listAllMessages()tempMail.iterateMessages()- Python
temp_mail.get()temp_mail.list_messages()temp_mail.list_all_messages()temp_mail.iterate_messages()- Ruby
temp_mail.gettemp_mail.list_messagestemp_mail.list_all_messagestemp_mail.iterate_messages- PHP
tempMail->gettempMail->listMessagestempMail->listAllMessagestempMail->iterateMessages
readTempMessage
Read one message of a temporary inbox: sender, subject, when it arrived, the sign-in code when it is a verification email and OpenEmail is sure of it, and the text.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caracteresmessageIdstringObrigatórioThe message id listTempMessages returned.
De 1 a 512 caracteres
Também disponível em
extendTempInbox
Keep a temporary inbox open longer. Each extension adds time up to 1440 minutes in all, at most 23 times. It returns a new inbox token: use it from then on.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caracteres
Também disponível em
- API
POST /temp-mail/inboxes/{id}/extend- TypeScript
tempMail.extend()- Python
temp_mail.extend()- Ruby
temp_mail.extend- PHP
tempMail->extend
deleteTempMessage
Delete one message of a temporary inbox for good.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caracteresmessageIdstringObrigatórioThe message id listTempMessages returned.
De 1 a 512 caracteres
Também disponível em
deleteTempInbox
Close a temporary inbox now and delete everything it received. Its token stops working.
Entradas
tokenstringObrigatórioThe inbox token createTempInbox returned, starting with oe_inbox_. It is the only key to the inbox.
De 1 a 4096 caracteres
Também disponível em
- API
DELETE /temp-mail/inboxes/{id}- TypeScript
tempMail.delete()- Python
temp_mail.delete()- Ruby
temp_mail.delete- PHP
tempMail->delete