You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
I get an exception and 403 error saying "Something went wrong." if I try to post to a private page, but the post still is made and visible on the cohost site.
fromcohost.models.userimportUserfromcohost.models.blockimportAttachmentBlock, MarkdownBlockimportosuser=User.login(os.getenv("COHOST_USER"), os.getenv("COHOST_PASS"))
project=user.getProject('myPage')
blocks=[MarkdownBlock('test')]
newPost=project.post(headline="test", blocks=blocks) # this is where the exception is raisedprint('Check out your post at {}'.format(newPost.url))