Реализация для MailTrap Basic функциональных возможностей с использованием Python.
Все, что вам нужно, это Python версия 3.6 или выше
pip3 install mailtrap-handlerДля выделенной документации нажмите здесь
from mailtrap_handler import MailTrapHandler
mailtrap = MailTrapHandler ( TOKEN , ACCOUNT_ID )
# then do what you need with the mailtrap objectПолучите идентификатор почты:
# 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 idsПолучите Mail HTML Content:
# 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 contentОчистить почтовый ящик:
MailTrapHandler . clean_inbox ( inbox )Удалить целевую почту:
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! Мы приветствуем проблемы и выдвигают запросы против этого хранилища!
Этот репозиторий следует за обычными коммитами
<type>(optional scope): <description> Пример: feat(pre-event): Add speakers section
Доступные типы:
feat: Add table on landing page , feat: Remove table from landing pagefix: Illustration overflows in mobile view Метки на страницу Ex: feat(pre-event): Add date label
Если нет необходимости, вам не нужно писать это
Описание должно полностью объяснить, что делается.
Добавьте нарушающие изменения в описании, если существует значительное изменение.
Если есть несколько изменений, затем совершите один за другим
feat: Add somethingfix укажите проблему Ex: fix: File size limiter not workingСделать в соответствии с Semantic Release Spec выше и позвольте Circleci (и семантическому высвобождению) сделать магию.