python mailtrap handler
0.2.0
Python을 사용한 MailTrap 기본 기능 구현.
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메일 ID 받기 :
# 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메일 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 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 유형을 사용하는 경우 문제를 설명하십시오 : fix: File size limiter not working위의 시맨틱 릴리스 사양에 따라 커클 레시 (및 시맨틱 릴리스)가 마술을 수행하도록하십시오.