easemob4j

环信开发工具包

License

License

GroupId

GroupId

com.foxinmy
ArtifactId

ArtifactId

easemob4j
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

easemob4j
环信开发工具包
Project URL

Project URL

https://github.com/foxinmy/easemob4j
Source Code Management

Source Code Management

https://github.com/foxinmy/easemob4j

Download easemob4j

How to add to project

<!-- https://jarcasting.com/artifacts/com.foxinmy/easemob4j/ -->
<dependency>
    <groupId>com.foxinmy</groupId>
    <artifactId>easemob4j</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.foxinmy/easemob4j/
implementation 'com.foxinmy:easemob4j:1.1.3'
// https://jarcasting.com/artifacts/com.foxinmy/easemob4j/
implementation ("com.foxinmy:easemob4j:1.1.3")
'com.foxinmy:easemob4j:jar:1.1.3'
<dependency org="com.foxinmy" name="easemob4j" rev="1.1.3">
  <artifact name="easemob4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.foxinmy', module='easemob4j', version='1.1.3')
)
libraryDependencies += "com.foxinmy" % "easemob4j" % "1.1.3"
[com.foxinmy/easemob4j "1.1.3"]

Dependencies

compile (1)

Group / Artifact Type Version
com.foxinmy : weixin4j-base jar 1.7.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.1.3
1.1.2
1.1.1
1.1.0
1.0