feedbot-server
v1.8.0-alpha.3
Published
This app exposes API for retrieval and updating of stored JSON bot definitions from table storage.
Readme
Feedbot Server
This app exposes API for retrieval and updating of stored JSON bot definitions from table storage.
Example calls
GEThttp://localhost:8000/api/botsGEThttp://localhost:8000/api/bots/eopPOSThttp://localhost:8000/api/bots{bot:{...}}PUThttp://localhost:8000/api/bots/eop{bot:{...}}
Bot object structure is defined in feedbot/packages/schema package.
Authentication
Following environment variables can be used to enable Facebook authentication:
FACEBOOK_APP_IDFACEBOOK_APP_SECRETREALTIME_SERVER_URL- where realtime server is runningREALTIME_NAMESPACE- namespace of designer (prefix of botId)
Header Authorization: Bearer * is then checked against Facebook Graph API before every API call hander execution.
Design
REST calls are described in server/handlers/... and their services are respectively placed in server/data/... directory.
