Thursday, June 16, 2011

Lampcms Write API

My Question on Support site for LampCMS project

I said before that OAuth2 (or Oauth1) based API will not be free. This is still true.
But I also decided to still write a write API, based on Basic Auth. Basic Auth is a simple authentication where username and password are sent in request headers. This is the old standard. When Twitter API first came out it was based on Basic Auth, then for some time it was still available even after they released OAuth api, then finally they discontinued it.

Basic Auth in not secure but can still be OK if used with https urls.

Some (maybe even many) APIs out there still support Basic Auth, for example github API has such support.

Anyway, I added the support for Basic Auth and wrote 2 write API controllers: addquestion and addanswer

I am still testing the addanswer but addquestion already works.

This all means that you can start writing apps for Lampcms, for example maybe an Android app or web app.
More write API controllers will be added soon, like retag, edit, addcomment, vote, acceptanswer, delete, flag, close

You should ask questions here if you need more details on how to write apps for Lampcms and how to use API in general.

Click here to post your reply


No comments:

Post a Comment