Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

แนวทางการเปลี่ยนผ่านจาก Line Notify-api to Messaging API #36

Open
pphetra opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@pphetra
Copy link
Contributor

pphetra commented Jan 14, 2025

Implement Message API ที่ทำหน้าที่คุยกับ Line Group

  • ชื่อ project podd-line-messaging
  • แยก implement ออกมาจาก podd-api เนื่องจาก podd-api depend บน outdated python

Minimize ผลกระทบของ notification เดิม (ที่เคยแจ้งผ่าน line-notify)

Notification logic เดิม

  • ของเดิมจะใช้วิธีการใส่ notification_authority.to ด้วยค่า line:เทศบาลตำบลแสนไห:TOKEN
  • system ทำการสร้าง message ใน notifications_notification โดยมี to เป็น notify-api TOKEN และ anonymous_send = 3

การปรับเปลี่ยน

  • ปรับโปรแกรมจากเดิมที่เคยส่งไปยัง notify-api เปลี่ยนไปใช้ message api โดย check ที่วันที่ cut-off ใน settings
  • ปรับให้ส่งต่อไปยัง PoddLineNotificationService แทน

กรณี อปท. ใหม่

  • ให้ config notification_authority.to ด้วยค่า line:เทศบาลตำบลแสนไห:nofi
@pphetra pphetra self-assigned this Jan 14, 2025
@pphetra pphetra added this to the Notify-Line-Messaging-api milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant