##Purpose This program is simple realtime logger by HTML5 server-sent event and HTTP redirector between developer's local and callback server for Mypeople Bot API. You can debug HTTP request/responses and implement early features using developer's PC inner intranet.
Please use Firefox, Chrome, Safari not Internet Explorer.
##Install
- Server script: callback.php
- Client script: You can use this HTML code direct and only edit event source location.
"
var source=new EventSource("callback.php"); "
- If log file sizes up 4k, logs are deleted automatically.
##How to Test
- Download and install Mypeople PC version.
- In tab of 'Add friends', input 'channy.bot' with 'Find by ID'.
- You can see addBuddy log when a friend is added.
- You can see sendFromMessage when a message is sent.
- Real response is done by action.php of developer's PC and its code is based on Bot API sample code of Daum DNA's github.