Giter Club home page Giter Club logo

server-sdk-php's Introduction

server-sdk-php

Rong Cloud Server SDK in PHP.

版本说明

为方便开发者的接入使用,更好的对融云 Server SDK 进行维护管理,融云 Server SDK 2.0 统一规范了命名及调用方式,结构更加清晰。老版本的 Server SDK 仍然可以使用,但不会再做新的功能更新。 如果您是新接入的开发者,建议您使用 Server SDK 2.0 版本。 对已集成使用老版本 Server SDK 的开发者,不能直接升级使用,强烈建议您重新测试后使用

API文档

使用教程

  • 请参考 example.php 上面提供了所有的 API 接口的调用用例。

高级API接口

User

  • getToken 获取 Token
  • refresh 刷新用户信息
  • checkOnline 检查用户在线状态
  • block 封禁用户
  • unBlock 解除用户封禁
  • queryBlock 获取被封禁用户
  • addBlacklist 添加用户到黑名单
  • queryBlacklist 获取某用户的黑名单列表
  • removeBlacklist 从黑名单中移除用户

Message

  • publishPrivate 发送单聊消息
  • publishTemplate 发送单聊模板消息
  • PublishSystem 发送系统消息
  • publishSystemTemplate 发送系统模板消息
  • publishGroup 发送群组消息
  • publishDiscussion 发送讨论组消息
  • publishChatroom 发送聊天室消息
  • broadcast 发送广播消息
  • getHistory 消息历史记录下载地址获取 消息历史记录下载地址获取。获取 APP 内指定某天某小时内的所有会话消息记录的下载地址
  • deleteMessage 消息历史记录删除

Wordfilter

  • add 添加敏感词
  • delete 移除敏感词
  • getList 查询敏感词列表

Group

  • create 创建群组
  • sync 同步用户所属群组
  • refresh 刷新群组信息
  • join 将用户加入指定群组,用户将可以收到该群的消息,同一用户最多可加入 500 个群,每个群最大至 3000 人
  • queryUser 查询群成员
  • quit 退出群组
  • addGagUser 添加禁言群成员
  • lisGagUser 查询被禁言群成员
  • rollBackGagUser 移除禁言群成员
  • dismiss 解散群组。

Chatroom

  • create 创建聊天室
  • join 加入聊天室
  • query 查询聊天室信息
  • queryUser 查询聊天室内用户
  • stopDistributionMessage 聊天室消息停止分发
  • resumeDistributionMessage 聊天室消息恢复分发
  • addGagUser 添加禁言聊天室成员
  • ListGagUser 查询被禁言聊天室成员
  • rollbackGagUser 移除禁言聊天室成员
  • addBlockUser 添加封禁聊天室成员
  • getListBlockUser 查询被封禁聊天室成员
  • rollbackBlockUser 移除封禁聊天室成员
  • destroy 销毁聊天室
  • addWhiteListUser 添加聊天室白名单成员

Push

  • setUserPushTag 添加 Push 标签
  • broadcastPush 广播消息

SMS

  • getImageCode 获取图片验证码
  • sendCode 发送短信验证码
  • verifyCode 验证码验证

server-sdk-php's People

Contributors

wangjun083 avatar baley avatar ericyangpan avatar changxiaoqiang 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.