Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wingbot-daktela

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wingbot-daktela

Daktela connector for wingbot.ai

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

Daktela connector for wingbot.ai

Connector for automating chat conversations on Daktela.


API

Daktela

BotService connector for wingbot.ai

Kind: global class

  • Daktela
    • new Daktela(processor, options, [senderLogger])
    • .processEvent(body)Promise.<Array.<{message:Object, pageId:string}>>
    • .verifyRequest(body, headers)Promise

new Daktela(processor, options, [senderLogger])

ParamTypeDescription
processorProcessorwingbot Processor instance
optionsObject
[options.terminateAction]stringconversation termination postback
[options.pageId]stringcustom page ID
[options.requestLib]functionrequest library replacement for testing
[senderLogger]consoleoptional 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

Keywords

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc