Todo
Make comments
This commit is contained in:
parent
36ec4ee339
commit
c5d074d178
2 changed files with 30 additions and 3 deletions
|
|
@ -22,4 +22,10 @@ there's probably an already existing name that I can't articulate how
|
||||||
to find.
|
to find.
|
||||||
2. Should these `job` be called with dot notation? Or with slashes? Or
|
2. Should these `job` be called with dot notation? Or with slashes? Or
|
||||||
something else? Is it okay to have these as strings?
|
something else? Is it okay to have these as strings?
|
||||||
3. Should we do validation in the `jobs` or let the server do that all?
|
3. Should we do validation in the `jobs` or let the server do that all?
|
||||||
|
|
||||||
|
## ToDo:
|
||||||
|
|
||||||
|
1. Make more jobs
|
||||||
|
2. Make wrappers to make it less cumbersome when posting etc
|
||||||
|
3. Publish to PyPi or whatever
|
||||||
25
testing.py
25
testing.py
|
|
@ -59,6 +59,7 @@ if not API.is_token_valid():
|
||||||
# })
|
# })
|
||||||
# print(post)
|
# print(post)
|
||||||
# print("-----------------------------")
|
# print("-----------------------------")
|
||||||
|
|
||||||
# post = API.run_job('comment.create', {
|
# post = API.run_job('comment.create', {
|
||||||
# "blurLabel": None,
|
# "blurLabel": None,
|
||||||
# "commentText": "This is a test comment created via the API wrapper.",
|
# "commentText": "This is a test comment created via the API wrapper.",
|
||||||
|
|
@ -75,5 +76,25 @@ if not API.is_token_valid():
|
||||||
# })
|
# })
|
||||||
# print(post)
|
# print(post)
|
||||||
# print("-----------------------------")
|
# print("-----------------------------")
|
||||||
feed = API.run_job('comment.listtbypostid', "1774951384-98fe38df")
|
# feed = API.run_job('comment.listtbypostid', "1774951384-98fe38df")
|
||||||
print(feed)
|
# 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