Giter Club home page Giter Club logo

appkefu_android_demo_v4's Introduction

微客服

安卓客服demo 4.x 版本 - 致力于为开发者提供极致用户体验的SDK

其他: iOS版:https://github.com/pengjinning/AppKeFu_iOS_Demo_V4

预览

功能一览

电商

扩展

语音

智能问答

满意度

常见问题

个人标签

留言

开发文档

http://admin.appkefu.com/AppKeFu/doc/android.html

接口一览

//sdk版本
public static String version()

//是否登录
public static Boolean isConnected()

//获取用户名
public static String getUsername(Context context)

//接收到消息的时候 是否显示在通知栏
public static void setIfShowNotification(String workgroupName, Boolean flag, Context context)
	
//开启关闭调试模式
public static void enableDebugMode(Context context, Boolean flag)

//使用自定义用户名登录
public static void loginWithUserID(String userId, Context context)

//清空聊天记录
public static void clearMessageRecords(String workgroupName, Context context)

//检测工作组内是否有至少一个客服在线
public static void checkKeFuIsOnlineAsync(String workgroupname, Context context)

//发送消息
public static void sendMessage(Context context, String workgroupName, String textContent)

//获取未读消息数目接口
public static int getUnreadMessageCount(String workgroupName, Context context)

//开始会话,具体参数意义请下载demo
public static void startChat(Context context 
			,String workgroupName 
			,String title 
			,String productInfo
			,Boolean showMenu
			,int showMessageCount
			,String kefuAvatarURL
			,String userAvatarURL
			,Boolean defaultRobot
			,Boolean mustRateBoolean
			//,Boolean saveSession
			,KFCallBack callBack)
	
//开始电商会话页面
public static void startECChat(Context context 
			,String workgroupName 
			,String title 
			,String productInfo
			,Boolean showMenu
			,int showMessageCount
			,String kefuAvatarURL
			,String userAvatarURL
			,Boolean defaultRobot
			
			,Boolean showGoodsLayout
			,String goodsImageViewURL
			,String goodsTitleDetail
			,String goodsPrice
			,String goodsWeburl
			,String goodsCallbackID
			
			,Boolean mustRateBoolean
			//,Boolean saveSession
			,KFCallBack callBack)
	
//开始留言
public static void startLeaveMessage(Context context, String workgroupName)
	
//获取个人标签
public static KFUserTagsEntity getTags(Context context)

//设置昵称
public static void setTagNickname(String nickname, Context context)

//设置性别
public static void setTagSex(String sex, Context context)

//设置语言
public static void setTagLanguage(String language, Context context)

//设置城市
public static void setTagCity(String city, Context context)
    
//设置省份
public static void setTagProvince(String province, Context context)

//设置国家
public static void setTagCountry(String country, Context context)

//设置其他
public static void setTagOther(String other, Context context)
    
//设置手机
public static void setTagMobile(String mobile, Context context)
    
//设置QQ
public static void setTagQQ(String qq, Context context)

//设置email
public static void setTagEmail(String email, Context context)
   
//登出
public static void Logout(Context context)

appkefu_android_demo_v4's People

Contributors

bytedesk avatar pengjinning avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.