Vote casting

This commit is contained in:
simonwt 2026-04-03 00:50:38 +01:00
parent 8704ad0e70
commit 80786c4965
12 changed files with 152 additions and 42 deletions

View file

@ -148,7 +148,7 @@ from trustcafeapiwrapper.wrappers.post.create_post import create_post
# post_text="This is a test post created via the create_post wrapper function.",
# parent_path="/branch/music",
# ))
from trustcafeapiwrapper.wrappers.reaction import react
# from trustcafeapiwrapper.wrappers.reaction import react
# save_response(create_post(
# "This is a test post created via the create_post wrapper function.",
# "/userprofile/simon-little",
@ -163,8 +163,14 @@ from trustcafeapiwrapper.wrappers.reaction import react
# "This is a test post created via the create_post wrapper function.",
# )))
save_response(API.wrapped(react(
"thumbs_up",
# save_response(API.wrapped(react(
# "thumbs_up",
# "/",
# "/post/1775075313-63ffb852"
# )))
from trustcafeapiwrapper.wrappers.vote import votecast
save_response(API.wrapped(votecast(
"up",
"/",
"/post/1775075313-63ffb852"
)))