fixes to react and tested

This commit is contained in:
simonwt 2026-04-03 00:07:39 +01:00
parent 60351f7cdb
commit 8704ad0e70
6 changed files with 26 additions and 11 deletions

View file

@ -49,9 +49,9 @@ def save_response(response):
print("-----------Get a user profile----------------")
profile = API.run_job('userprofile.get', "simon-little")
print(profile)
# print("-----------Get a user profile----------------")
# profile = API.run_job('userprofile.get', "simon-little")
# print(profile)
# print("-------------- Get a branch -----------------")
# branch = API.run_job('branch.get', "music")
# print(branch)
@ -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
# save_response(create_post(
# "This is a test post created via the create_post wrapper function.",
# "/userprofile/simon-little",
@ -161,4 +161,10 @@ from trustcafeapiwrapper.wrappers.post.create_post import create_post
# save_response(API.wrapped(create_post(
# "This is a test post created via the create_post wrapper function.",
# )))
# )))
save_response(API.wrapped(react(
"thumbs_up",
"/",
"/post/1775075313-63ffb852"
)))