Upload
rarere
View
295
Download
7
Embed Size (px)
Citation preview
botが JSONを POST
LingrWeb Server
http://どこか /
Room
rarere
Bot JSONを POST
※botは httpクライアントみたいなもの
誰かが何か発言したから、指定の URLへ、ユーザ名とか発言内容が含まれてる JSONを、さっき覚えた URLへ POSTするよ!
Content-Type: text/plainで表示
LingrWeb Server
http://どこか /
Room
rarere
Bot
今回は、Content-Type: text/plain
Hi, rarere!と表示させよう
Context-Type: text/plainなテキスト表示
「 Hi, rarere!」という文字列を受け取ったよ!