Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting a post by its ID is possible #6

Open
lxhom opened this issue Dec 3, 2022 · 1 comment
Open

getting a post by its ID is possible #6

lxhom opened this issue Dec 3, 2022 · 1 comment

Comments

@lxhom
Copy link

lxhom commented Dec 3, 2022

the readme says this:

Getting a post by its ID: seems impossible? endpoint seems to be disabled

but you can, via the share function (at least in a browser): https://cohost.org/[username]/post/compose?shareOf=[id] shows the post with the specified id :)

@thatcher-gaming
Copy link

if you know the handle of the post author, you can also do this by GETing https://cohost.org/api/v1/trpc/posts.singlePost?input={"handle":"<Handle of post author>","postId":<Post ID>}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants