5 minutes integrated online customer service
Ready to work
- Go to the official website of Radish Silk to register an administrator account and log in to the management background.
- Go to All Settings -> Application Management -> App to add an application, fill in the relevant information and click OK, the appkey can be seen in the generated record, which will be used later.
- Go to All Settings->Customer Service Management->Customer Accounts to add a customer service account. Note: There is a column of 'unique ID (uid)' in the generated record, which will be used in the specified customer service interface
- Go to All Settings -> Customer Service Management -> Skill Groups to add skill groups, and add customer service accounts to related skill groups. Note: There is a column 'Unique ID (wId)' in the generated record which will be used in the workgroup session
start integration
Step 1: Add the pod library
# 集成萝卜丝核心协议库core
pod 'bytedesk-core'
# 集成萝卜丝UI库
pod 'bytedesk-ui'
Step 2: Add the header file to the AppDelegate.m file
#import <bytedesk-core/bdcore.h>
Step 3: Establish a long connection of radish in AppDelegate.m
// 1. 在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions中添加
// 2. 在 - (void)applicationWillEnterForeground:(UIApplication *)application中添加
// anonymouseLogin函数代码请查看AppDelegate.m文件
[self anonymouseLogin];
Step 4: Add the header file in ViewController.m
#import <bytedesk-ui/bdui.h>
Step 5: Open the online customer service session window in ViewController.m
[BDUIApis pushWorkGroupChat:self.navigationController withWorkGroupWid:DEFAULT_TEST_WID withTitle:kDefaultTitle];
Step 6: Add album + photo permission in Info.plist, please refer to demo
integrated
{{o.name}}
{{m.name}}