Coder Social home page Coder Social logo

tim's Introduction

腾讯 即时通信 IM(TIM)

安装包

composer require luoyy/tim
在 app.php 中注册服务器提供者(Laravel5.5+支持自动发现)
luoyy\Tim\Providers\TimServiceProvider
ENV
#Tim配置
# App 在即时通信 IM 控制台获取的应用标识
TIM_SDK_APPID=
# 用户名,调用 REST API 时必须为 App 管理员帐号
TIM_IDENTIFIER=
# 生成 UserSig 的组件库版本 默认 v2 对称加密,如果要使用非对称加密请使用v1
TIM_TLS=v2
# v2 对称加密使用的谜语
TIM_SECRET_KEY=
# v1 非对称加密使用的公钥,只需要中间部分,且去除换行
TIM_PUBLIC_KEY=
# v1 非对称加密使用的私钥,只需要中间部分,且去除换行
TIM_PRIVATE_KEY=

Quick Sample Usage

/**
 * TIM DEMO
 */
use luoyy\Tim\Facades\Tim;

var_dump(Tim::portrait_get(['test'], [Tag::TAG_PROFILE_IM_NICK]));
var_dump(Tim::errCode());
var_dump(Tim::errMsg());

更新日志

  • 2020.12.23:新增一些API接口,具体请查看commit
  • 2020.07.31:更新版本到3.0,完善一些注释内容,添加全员推送 all_member_push 相关接口,2.0升级请注意querystate接口参数已修改,具体请查看commit
  • 2021.11.05:更新版本到3.2,完善一些注释内容,添加查询帐号在线状态 query_online_status 接口(旧的接口弃用,请注意),添加 最近联系人 相关API,具体请查看commit
  • 2022.05.20:更新版本到3.4,完善一些注释内容,修复一些API接口参数问题,添加新的API,具体请查看commit

tim's People

Contributors

zishang520 avatar

Stargazers

 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.