easypre-client

this is easypre client.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.easypre
ArtifactId

ArtifactId

easypre-client
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

easypre-client
this is easypre client.
Project URL

Project URL

https://github.com/zhou00001/easypre-client
Source Code Management

Source Code Management

https://github.com/zhou00001/easypre-client

Download easypre-client

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
com.google.guava : guava jar 29.0-jre
com.squareup.okhttp3 : okhttp jar 4.6.0
org.apache.commons : commons-lang3 jar 3.10
commons-codec : commons-codec jar 1.14
com.github.rholder : guava-retrying jar 2.0.0
org.slf4j : slf4j-api jar 1.7.30
com.fasterxml.jackson.core : jackson-databind jar 2.11.0
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.11.0
com.fasterxml.jackson.core : jackson-core jar 2.11.0
com.fasterxml.jackson.core : jackson-annotations jar 2.11.0

Project Modules

There are no modules declared in this project.

easypre-client

download

本客户端可在maven库maven center直接下载使用。

<dependency>
    <groupId>com.easypre</groupId>
    <artifactId>easypre-client</artifactId>
    <version>1.0.2</version>
</dependency>

请移步 https://easypre.com/help/easypre/start 查看

Features

  • 应用监控
  • 秒级推送消息,及时感知
  • 应用消息推送
  • 灵活配置推送方式
  • 支持钉钉机器人、企业微信机器人、邮件方式推送
  • 秒级推送消息,及时感知

Usage Examples

construct

无代理模式

// appKey和appSecret需登录EasyPre.com后,在【控制台】-【我的应用】- 【设置】-【应用信息】查看获取。
EasyPre.init(new EasyPreConfig("pro","appKey","appSecret"));

代理模式

// appKey和appSecret需登录EasyPre.com后,在【控制台】-【我的应用】- 【设置】-【应用信息】查看获取。
EasyPreConfig easyPreConfig=new EasyPreConfig("pro","appKey","appSecret");
// 代理ip和端口全部配置才生效
easyPreConfig.setProxyIp("**.**.**.**");
easyPreConfig.setProxyPort(8888);
EasyPre.init(easyPreConfig);

useage

tag template

Map<String,Object> params=Maps.newHashMap();
params.put("userName","张三");
params.put("code","10086");
params.put("expireMiniutes",10);
EasyPre.eventTemplate("register","[email protected]",params);

event

/**
* 普通事件
*
* @param content 内容
* @param params  参数
*/
EasyPre.event(String content, final Object... params)

Versions

Version
1.0.2
1.0.1
1.0.0