zapread.com icon indicating copy to clipboard operation
zapread.com copied to clipboard

Implement external API

Open fervi opened this issue 6 years ago • 3 comments

A nice thing that would be useful to me is a very simple API that allows remote posting. For example, I could send a POST query that will be verified and executed (add text, etc.)

fervi avatar Jan 01 '19 18:01 fervi

That would be a great feature. I've added the idea to the roadmap.

Authentication with the API will be important. I will probably stick with HMAC authentication https://en.wikipedia.org/wiki/HMAC

I can see posting as a simple first step

  • Submit a new post
  • Read posts
  • Delete post
  • Update post
  • Vote on posts

I can also see messaging as a useful API endpoint for integrating bots, etc.

A finance endpoint will allow users to manage their funds on the platform with automation.

Horndev avatar Jan 01 '19 22:01 Horndev

Great. It's nice if you could issue commands through POST references (eg Curl). Then you can create projects (not only bots, but also other interfaces, etc.) in everything that you can.

fervi avatar Jan 01 '19 23:01 fervi

If we just implement a code friendly authentication mechanism, we can still use all endpoints we already have (incl. everything listed above), don't want to give that up. It could be as simple as an API Key (you can regenerate easily). We could supply it with a header in every request. Idk, just any authentication mechanism will do it.

We could then use all enpoints already there, most expect and accept json.

Seems like less work with similar results, or a good first step.

wfinn avatar Mar 25 '20 19:03 wfinn