Post create
This commit is contained in:
parent
e775b3f456
commit
499c5aee98
3 changed files with 29 additions and 3 deletions
16
testing.py
16
testing.py
|
|
@ -42,6 +42,18 @@ if not API.is_token_valid():
|
|||
# print("-----------------------------")
|
||||
# feed = API.run_job('post.listbybranch', "music")
|
||||
# print(feed)
|
||||
# print("-----------------------------")
|
||||
# feed = API.run_job('post.listbyuserprofile', "simon-little")
|
||||
# print(feed)
|
||||
print("-----------------------------")
|
||||
feed = API.run_job('post.listbyuserprofile', "simon-little")
|
||||
print(feed)
|
||||
post = API.run_job('post.create', {
|
||||
"blurLabel": None,
|
||||
"cardUrl": None,
|
||||
"postText": "This is a test post created via the API wrapper.",
|
||||
"collaborative": False,
|
||||
"parent": {
|
||||
"pk": "maintrunk#maintrunk",
|
||||
"sk": "maintrunk#maintrunk"
|
||||
}
|
||||
})
|
||||
print(post)
|
||||
Loading…
Add table
Add a link
Reference in a new issue