Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.28 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.28 KB

easemob4j

环信开发工具包

功能列表

  • UserApi 用户API

  • NotifyApi 消息API

项目说明

环信REST接口实现

如何使用

1.接口的正确调用需要将easemob4j.properties文件复制到项目的classpath

easemob4j.properties说明

属性名 说明
easemob4j.account 环信账号信息 json格式
easemob4j.tmpdir easemob4j使用的临时目录,比如使用文件方式保存token时,如不设置则获取java.io.tmpdir目录.

示例(properties中换行用右斜杆\)

easemob4j.account={"orgName":"企业公司名","appName":"应用名",\
	"orgAdmin":"企业管理员","appAdmin":"应用管理员",\
	"clientId":"clientId","clientSecret":"clientSecret"}

easemob4j.tmpdir=

2.实例化一个EasemobProxy对象,调用API.

EasemobProxy easemobProxy = new EasemobProxy();
easemobProxy.createUser(user);

3.token存储

如何获取

1.maven

<dependency>
    <groupId>com.foxinmy</groupId>
    <artifactId>easemob4j</artifactId>
    <version>1.1.3</version>
</dependency>

2.git clone & mvn package.