Todo
Make comments
This commit is contained in:
parent
36ec4ee339
commit
c5d074d178
2 changed files with 30 additions and 3 deletions
25
testing.py
25
testing.py
|
|
@ -59,6 +59,7 @@ if not API.is_token_valid():
|
|||
# })
|
||||
# print(post)
|
||||
# print("-----------------------------")
|
||||
|
||||
# post = API.run_job('comment.create', {
|
||||
# "blurLabel": None,
|
||||
# "commentText": "This is a test comment created via the API wrapper.",
|
||||
|
|
@ -75,5 +76,25 @@ if not API.is_token_valid():
|
|||
# })
|
||||
# print(post)
|
||||
# print("-----------------------------")
|
||||
feed = API.run_job('comment.listtbypostid', "1774951384-98fe38df")
|
||||
print(feed)
|
||||
# feed = API.run_job('comment.listtbypostid', "1774951384-98fe38df")
|
||||
# print(feed)
|
||||
# print("-----------------------------")
|
||||
# x = 1
|
||||
# while x <= 20:
|
||||
# post = API.run_job('comment.create', {
|
||||
# "blurLabel": None,
|
||||
# "commentText": f"Making loads of comment #{x}",
|
||||
# "parent": {
|
||||
# "pk": "maintrunk#maintrunk",
|
||||
# "sk": "post#1774951384-98fe38df",
|
||||
# "slug": "1774951384-98fe38df"
|
||||
# },
|
||||
# "topLevel": {
|
||||
# "pk": "maintrunk#maintrunk",
|
||||
# "sk": "post#1774951384-98fe38df"
|
||||
# },
|
||||
# "version": 3
|
||||
# })
|
||||
# print(post)
|
||||
# x += 1
|
||||
# print("-----------------------------")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue