Start a new topic
Planned

Developer API

It'd be great to have a developer API for Cohost especially to support automated/bot posting.

For example, A use case I'm interested in building is for a news bot that could post updates from RSS feeds or other news sources

 


28 people like this idea

For the record, there's already a python library out there (will edit with link later) that deals with the private API, but that's obviously not really meant for users. An official api would be cool!

a public API is coming! no promises on timelines yet but it's important to us to get it shipped.


12 people like this

It'd be nice to support a "standard" API like MetaWeblog if at all possible. I know some of those (including that one!) is old and creaky, but it's old and creaky—and already has existing tools that work with it. A more modern incarnation of that might be Micropub.


(Also, I noted the "documentation is hard" in Jae's link. If you need help with that, you might able to ping me, depending on time constraints [yours and mine] -- I'm actually a technical writer who specializes in documenting developer APIs!)

Since you're working on an API, I might I suggest the following:


* [IndieAuth](https://indieweb.org/IndieAuth) (itself an extension to OAuth) for login/authentication 

* [Micropub](https://indieweb.org/Micropub) for submitting and editing posts


This combination would immediately make cohost work very well as part of the IndieWeb and could make use of the many existing micropub clients out there (so you don't need to write your own mobile client), and would also allow things like using a Cohost account to sign in to IndieAuth-enabled websites as well.

+1, would be nice to be able to make clients for mobile :)

I hope this is still in the cards! The webapp is a good baseline, but letting folks write their own clients is even better.

I know a lot of artists that would love to be able to use PostyBirb to post here while the figure out their new social media landscape and an API is very much needed for that. Really hope this is given the attention it deserves.


2 people like this

From what I've been able to tell, cohost uses tRPC in a monorepo with Preact and Express, so they can't just publicly open up the tRPC endpoint without open-sourcing (please, please, please do that), so they have to build one from scratch.

 Really wish this would get implemented ASAP. It's driving me crazy not being able to add CoHost to my Postybirb crossposts!

Any updates on this? Twitter is falling apart, but I need the API here before I can really jump ship (specifically for the purpose of being able to crosspost my art here and among my remaining galleries [via PostyBirb] - posting all that stuff manually gets very tedious)

1 person likes this
Login or Signup to post a comment