Skip to content

Freshchat Bot Web Widget for Freddy Self-service integration

License

Notifications You must be signed in to change notification settings

TheCodingBug/TCBFreshchatBotWidget

Repository files navigation

TCBFreshchatBotWidget

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

import TCBFreshchatBotWidget

@IBOutlet weak var widgetView: TCBFreshchatBotWidgetView!

// set and call whenever needed
let clientData: [String: Any] = ["name": "TCBFreshchatBotWidget User"]
let botWidget = TCBFreshchatBotWidget(clientHash: "d4980410f479d76eba5e00335eae38e8b04fd21e",
                                      botHash: "f90f6dfa4d478848d045c31ac0493f730c8368fd",
                                      showWidget: true,
                                      clientData: clientData)

widgetView.loadWidget(withBotWidget: botWidget)

// or
// set bot widget with resource directory to use
widgetView.loadWidget(withBotWidget: botWidget,
                      in: .developerDirectory,
                      inDomain: .userDomainMask)

Requirements

Installation

TCBFreshchatBotWidget is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TCBFreshchatBotWidget', :git => 'https://github.com/TheCodingBug/TCBFreshchatBotWidget.git'

Author

Neil Francis Ramirez Hipona, [email protected]

License

TCBFreshchatBotWidget is available under the MIT license. See the LICENSE file for more info.

About

Freshchat Bot Web Widget for Freddy Self-service integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published