1.0.1 • Published 4 years ago

wingbot-daktela v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Daktela connector for wingbot.ai

Connector for automating chat conversations on Daktela.


API

Daktela

BotService connector for wingbot.ai

Kind: global class

new Daktela(processor, options, senderLogger)

ParamTypeDescription
processorProcessorwingbot Processor instance
optionsObject
options.terminateActionstringconversation termination postback
options.pageIdstringcustom page ID
options.requestLibfunctionrequest library replacement for testing
senderLoggerconsoleoptional console like chat logger

daktela.processEvent(body) ⇒ Promise.<Array.<{message:Object, pageId:string}>>

Process Facebook request

Kind: instance method of Daktela
Returns: Promise.<Array.<{message:Object, pageId:string}>> - - unprocessed events

ParamTypeDescription
bodyObjectevent body

daktela.verifyRequest(body, headers) ⇒ Promise

Verify Facebook webhook event

Kind: instance method of Daktela
Throws:

  • Error when authorization token is invalid or missing
ParamTypeDescription
bodyObjectparsed request body
headersObjectrequest headers
1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.3

5 years ago

1.0.0-alpha.2

5 years ago

1.0.0-alpha.1

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago