Implementación para las funcionalidades básicas de MailTrap usando Python.
Todo lo que necesitas es Python versión 3.6 o superior
pip3 install mailtrap-handlerPara obtener documentación dedicada, haga clic aquí
from mailtrap_handler import MailTrapHandler
mailtrap = MailTrapHandler ( TOKEN , ACCOUNT_ID )
# then do what you need with the mailtrap objectObtener ID de correo:
# default value for title is None
list_of_ids = mailtrap . get_mail_id ( inbox , email , title = "Some Title here" )
# returns a list of found mails idsObtener contenido de correo HTML:
# default value for title is None
# default value for waiting_time is 0
MailTrapHandler . get_mail ( inbox , email , title , waiting_time = 30 )
# returns mail html contentLimpiar la bandeja de entrada:
MailTrapHandler . clean_inbox ( inbox )Eliminar el correo objetivo:
MailTrapHandler . delete_mail ( inbox , email , title = "Some Title here" )
# default value for title is None from mailtrap_handler import MailTrapHandler
# requirements
token = "123wellthiswouldbeyourtokenhere098"
account_id = 987654
inbox = 12349876 # this is your mailtrap inbox id
email = "[email protected]"
title = "Oy! Congrats on getting Your new T-shirt"
# creating mailtraphandler object
mailtrap = MailTrapHandler ( token , account_id )
# getting the html content
mails = mailtrap . get_mail ( inbox , email , title = title , 10 )
# we do now whatever we need with the recieved mails
# and now we delete this mail
mailtrap . delete_mail ( inbox , email , title = title )
# you know what let's just delete every mail in the inbox
mailtrap . clean_inbox ( inbox )
# I got no more mails! ¡Damos la bienvenida a los problemas y extraemos solicitudes contra este repositorio!
Este repositorio sigue los confirmaciones convencionales
<type>(optional scope): <description> Ejemplo: feat(pre-event): Add speakers section
Los tipos disponibles son:
feat: Add table on landing page , feat: Remove table from landing pagefix: Illustration overflows in mobile view Etiquetas por página Ej: feat(pre-event): Add date label
Si no se necesita alcance, no necesita escribirlo
La descripción debe explicar completamente lo que se está haciendo.
Agregue el cambio de ruptura en la descripción si hay un cambio significativo.
Si hay múltiples cambios, entonces comete uno por uno
feat: Add somethingfix , indique el problema ex: fix: File size limiter not workingComprométase de acuerdo con la especificación de lanzamiento semántico anterior y deje que Circleci (y liberación semántica) haga la magia.