Implémentation pour les fonctionnalités de base de MailTrap à l'aide de Python.
Tout ce dont vous avez besoin est Python version 3.6 ou supérieur
pip3 install mailtrap-handlerPour une documentation dédiée, cliquez ici
from mailtrap_handler import MailTrapHandler
mailtrap = MailTrapHandler ( TOKEN , ACCOUNT_ID )
# then do what you need with the mailtrap objectObtenez l'ID de messagerie:
# 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 idsObtenez du contenu HTML Mail:
# 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 contentNettoyez la boîte de réception:
MailTrapHandler . clean_inbox ( inbox )Supprimer le courrier cible:
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! Nous accueillons des problèmes et rédigeons les demandes contre ce référentiel!
Ce référentiel suit les validations conventionnelles
<type>(optional scope): <description> Exemple: feat(pre-event): Add speakers section
Les types disponibles sont:
feat: Add table on landing page , feat: Remove table from landing pagefix: Illustration overflows in mobile view Libellés par page Ex: feat(pre-event): Add date label
Si aucune portée n'est nécessaire, vous n'avez pas besoin de l'écrire
La description doit expliquer pleinement ce qui se fait.
Ajoutez un changement de rupture dans la description en cas de changement significatif.
S'il y a plusieurs changements, alors engagez-en un par un
feat: Add somethingfix , indiquez le problème Ex: fix: File size limiter not workingEngagez selon les spécifications de libération sémantique ci-dessus et laissez Circleci (et la libération sémantique) faire la magie.