홈 화면으로 이동하기

How to get a token and chat_id?

1️⃣ 보안 수준이 낮은 앱의 액세스 허용하기

https://myaccount.google.com/lesssecureapps 에서 설정하실 수 있습니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/00724f26-1638-4b9a-be7a-b332885e93cd/Untitled.png

목차로 이동

How to use?

1️⃣ pip를 통해 bwa 설치하기


pip install bwa

2️⃣ [test.py](<http://test.py>) 를 생성하여 아래의 코드를 작성하기


from bwa.gmail import deco_noti

@deco_noti(receiver_emails=["<RECEIVER_MAIL>"],
           sender_email="<SENDER_EMAIL>",
           sender_password="<SENDER_PASSWORD>")
def run():
    print("Test!")

if __name__ == "__main__":
		run()

**<RECEIVER_MAIL> 에 받으실 분의 Gmail 주소를, <SENDER_EMAIL><SENDER_PASSWORD> 에 각각 보내는 분의 Gmail 주소와 비밀번호를 넣어주세요.**