GithubHelp home page GithubHelp logo

react-native-udesk-sdk's Introduction

rn-udesk

GitHub license npm

此项目由rn-udesk fork 而来

Getting started

$ npm install react-native-udesk-sdk --save

Mostly automatic installation

$ react-native link react-native-udesk-sdk

Usage

import ReactNativeUdesk from 'react-native-udesk-sdk'

// 以下是ReactNativeUdesk可使用的方法

/**
 * 用户信息,用于传入这些用户信息,供客服查看
 */
export interface IUserInfo {
  nickname?: string;
  email?: string;
  phone?: string;
  description?: string;
  domain: string;
  appKey: string;
  appId: string;
  sdkToken: string; //是客户的唯一标识,用来识别身份,可以传userId
}

/**
 * 开始聊天
 * @param {IUserInfo} userInfo 用户信息
 */
 ReactNativeUdesk.startChat(userInfo)

/**
 * 发送咨询信息,例如商品订单
 */

export interface IItemInfo {
  title: string;
  subTitle: string;
  img: string;
  url: string;
}
 ReactNativeUdesk.sendCommodityMessage(userInfo, itemInfo);

react-native-udesk-sdk's People

Contributors

lvnini avatar

Watchers

 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.