파이썬 beem에서 알림을 읽음으로 표시하기
파이썬 beem을 이용해서 알림(notification)을 모두 읽음으로 표시하는 방법입니다. 포스팅키를 필요로 하며, Account 객체의 mark_notifications_as_read() 함수를 통해서 간편하게 할 수 있습니다. 예제 코드는 아래와 같습니다.
from beem import Steem
from beem.account import Account
node_list = ["https://api.steemit.com"]
steem_id = 'joviansummer'
posting_key = '5XXXXX...'
steem = Steem(node=node_list, keys=[posting_key])
account = Account(steem_id, blockchain_instance=steem)
account.mark_notifications_as_read()
알림 내용을 가져오는 기능과 조합해서 사용하면 되겠습니다. 파이썬 beem에서 알림을 가져오는 방법은 이전 포스트를 참고하시기 바랍니다. 아래의 링크입니다.
파이썬 beem에서 알림(notification) 가져오기
@joviansummer의 스팀 프로젝트
스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)
jsup 서비스에 큐레이션 보상 분배 기능이 추가되었습니다.
jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기
Posted through the AVLE Dapp (https://avle.io)
Upvoted! Thank you for supporting witness @jswit.
