Skip to content

foxinmy/easemob4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

环信REST

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages