cn.dceast.platform:gateway-sign

Qingliuyun Team

License

License

Categories

Categories

ORM Data
GroupId

GroupId

cn.dceast.platform
ArtifactId

ArtifactId

gateway-sign
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

cn.dceast.platform:gateway-sign
Qingliuyun Team
Project URL

Project URL

https://github.com/qingliuyun
Source Code Management

Source Code Management

https://github.com/qingliuyun/gateway-sign-java

Download gateway-sign

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.12
ch.qos.logback : logback-classic jar 1.1.3

Project Modules

There are no modules declared in this project.

青柳云 API网关调用SDK

简介

本项目是青柳云API网关产品中,访问API使用的SDK项目。

使用

  1. 引入依赖包
    <dependency>
        <groupId>cn.dceast.platform</groupId>
        <artifactId>gateway-sign</artifactId>
        <version>2.1.0</version>
    </dependency>
  1. 调用api
    //api地址
    String url = "http://localhost:8080/route/get";
    //青柳云申请的appkey与secretkey
    String appKey = "test-appkey";
    String secretKey = "test-secretkey";
    
    //连接超时时间
    int timeout = 2000;

    Map<String, Object> params = new HashMap<String, Object>();
    params.put("city", "苏州");
    params.put("bus", "301");
    String response = SimpleApiCallUtil.postForm(url, appKey, secretKey, params, null, timeout, null);
    System.out.println(response);

常见问题

Versions

Version
2.1.0