back channeling
v0.3.0

백 채널링은 실시간 BBS 도구입니다.
다음과 같이 기능이 있습니다.
데이터 빅 트랜스 활동자를 시작하십시오.
% bin/transactor
백 채널링을 시작하십시오.
% DATOMIC_URL=datomic:free://localhost:4334/bc bin/back_channeling
기본 포트는 3009입니다.
또는
% git clone https://github.com/kawasima/back-channeling.git
% cd back-channeling
% heroku create
% git push heroku master
3 분 밖에 걸리지 않습니다 !!
가입하면 봇 계정 유형을 선택하십시오. 승인 코드를 기억해야합니다.
먼저 승인 코드별로 토큰을 얻습니다.
POST /api/token
code=[authorization code]
다음과 같이 응답을받습니다.
{"access_token": , "name": "bot", "email": "[email protected]"}
백 채널링 웹 API를 요청할 때 토큰을 HTTP 헤더에 추가해야합니다.
curl -H 'Accept: application/json' -H 'Authorization: Token xxxxxxxxxxxxxxxx' [API url]
게시물 요청을 보내면 Content-Type 요청 헤더에 추가하십시오.
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Token xxxxxxxxxxxxxxxx' [API url]
보드 데이터를 얻으십시오.
GET /api/board/:board-name
다음과 같이 응답의 예 :
{
"id":17592186045424,
"name":"default",
"description":"Default board",
"threads":[
{"id":17592186045428,
"title":"aaa",
"since":"20150722T101724.515Z",
"last-updated":"20150722T110108.015Z",
"resnum":1000,"watchers":[]},
{"id":17592186045651,"title":"hohoho",
"since":"20150722T104559.129Z",
"last-updated":"20150929T123754.988Z",
"watchers":["bot2"],"resnum":1000}
]
}
GET /api/thread/:thread-id
POST /api/board/:board-name/threads
{"thread/name": "New thread", "comment/content": "Hello"}
POST /api/thread/:thread-id/comments
{"comment/content": "Hello"}