客户端集成要点 @ 腾讯云通信

2016-11-22  本文已影响369人  michael_jia

腾讯云通信 客户端集成提供了 Android SDK、iOS SDK、Windows SDK、Web SDK,本文以 Web SDK 为例,简要说一下集成要点;

DEMO运行指引
├─css
├─fonts
├─img
├─js
│  ├─common
│  ├─friend
│  ├─group
│  ├─lib
│  │  ├─audiojs
│  │  ├─base64
│  │  ├─bootstrap
│  │  ├─jquery
│  │  └─md5
│  ├─login
│  ├─logout
│  ├─msg
│  └─profile
└─sdk
index.html
var accountMode=0; // 账号模式,0-表示独立模式;
var sdkAppID = 1400001533; // 开发者改成自己的业务 id;
var accountType = 792; //开发者改成自己的业务帐号类型
运行demo(独立模式):index.html
ImSDK 基本概念
消息收发
群组管理
错误码 示例
修改昵称
托管模式的登录机制
web im 1.6 目录全貌
│  index.html
│  
├─css
│      bootstrap-table.css
│      bootstrap.css
│      jquery-ui.css
│      webim_demo.css
│      
├─fonts
│      glyphicons-halflings-regular.eot
│      glyphicons-halflings-regular.svg
│      glyphicons-halflings-regular.ttf
│      glyphicons-halflings-regular.woff
│      
├─img
│      2016.gif
│      2017.jpg
│      icon.png
│      icon_1.png
│      layer_arrow.png
│      ui-bg_diagonals-thick_18_b81900_40x40.png
│      ui-bg_diagonals-thick_20_666666_40x40.png
│      ui-bg_flat_10_000000_40x100.png
│      ui-bg_glass_100_f6f6f6_1x400.png
│      ui-bg_glass_100_fdf5ce_1x400.png
│      ui-bg_glass_65_ffffff_1x400.png
│      ui-bg_glass_65_ffffff_1x400_1.png
│      ui-bg_gloss-wave_35_f6a828_500x100.png
│      ui-bg_highlight-soft_100_eeeeee_1x100.png
│      ui-bg_highlight-soft_75_ffe45c_1x100.png
│      ui-icons_222222_256x240.png
│      ui-icons_228ef1_256x240.png
│      ui-icons_454545_256x240.png
│      ui-icons_ef8c08_256x240.png
│      ui-icons_ffd27a_256x240.png
│      ui-icons_ffffff_256x240.png
│      wlf_bg.png
│      wlf_title_bg.jpg
│      wlf_title_btn.jpg
│      
├─js
│  │  base.js
│  │  switch_chat_obj.js
│  │  
│  ├─common
│  │      show_one_msg.js
│  │      
│  ├─friend
│  │      friend_black_list_manager.js
│  │      friend_manager.js
│  │      friend_pendency_manager.js
│  │      
│  ├─group
│  │      group_manager.js
│  │      group_member_manager.js
│  │      group_pendency_manager.js
│  │      
│  ├─lib
│  │  ├─audiojs
│  │  │      audio.min.js
│  │  │      audio.min_my.js
│  │  │      audiojs.swf
│  │  │      player-graphics.gif
│  │  │      
│  │  ├─base64
│  │  │      base64.js
│  │  │      base64.min.js
│  │  │      
│  │  ├─bootstrap
│  │  │      bootstrap-collapse.js
│  │  │      bootstrap-table.js
│  │  │      bootstrap.js
│  │  │      
│  │  ├─jquery
│  │  │      jquery-ui.js
│  │  │      jquery.js
│  │  │      
│  │  └─md5
│  │          spark-md5.js
│  │          
│  ├─login
│  │      login.js
│  │      
│  ├─logout
│  │      logout.js
│  │      
│  ├─msg
│  │      get_history_msg.js
│  │      receive_friend_system_msg.js
│  │      receive_group_system_msg.js
│  │      receive_new_msg.js
│  │      receive_profile_system_msg.js
│  │      send_common_msg.js
│  │      send_custom_group_notify_msg.js
│  │      send_custom_msg.js
│  │      switch_play_sound_msg.js
│  │      upload_and_send_pic_msg.js
│  │      
│  └─profile
│          profile_manager.js
│          
└─sdk
        json2.js
        webim.js
        webim.min.js
        webim_no_emotion.js
上一篇 下一篇

猜你喜欢

热点阅读