java-sdk-dependencies

java-sdk-build

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.cnhnb.sdk
ArtifactId

ArtifactId

java-sdk-dependencies
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

pom
Description

Description

java-sdk-dependencies
java-sdk-build
Project URL

Project URL

https://github.com/dragontree101

Download java-sdk-dependencies

How to add to project

<!-- https://jarcasting.com/artifacts/com.cnhnb.sdk/java-sdk-dependencies/ -->
<dependency>
    <groupId>com.cnhnb.sdk</groupId>
    <artifactId>java-sdk-dependencies</artifactId>
    <version>0.0.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.cnhnb.sdk/java-sdk-dependencies/
implementation 'com.cnhnb.sdk:java-sdk-dependencies:0.0.2'
// https://jarcasting.com/artifacts/com.cnhnb.sdk/java-sdk-dependencies/
implementation ("com.cnhnb.sdk:java-sdk-dependencies:0.0.2")
'com.cnhnb.sdk:java-sdk-dependencies:pom:0.0.2'
<dependency org="com.cnhnb.sdk" name="java-sdk-dependencies" rev="0.0.2">
  <artifact name="java-sdk-dependencies" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.cnhnb.sdk', module='java-sdk-dependencies', version='0.0.2')
)
libraryDependencies += "com.cnhnb.sdk" % "java-sdk-dependencies" % "0.0.2"
[com.cnhnb.sdk/java-sdk-dependencies "0.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

java-sdk

惠农网给外部调用接口使用的java版本sdk

农技问答接口的使用方式

pom.xml里面引入依赖

    <dependency>
      <groupId>com.cnhnb.sdk</groupId>
      <artifactId>agricultural-module</artifactId>
      <version>0.0.2</version>
    </dependency>

接口方法:questionList 接口含义:获取前10热门品类行情

    //设置需要操作的账号的AK和SK
    String ACCESS_KEY = AgriculturalConstants.TEST_ACCESS_KEY;
    String SECRET_KEY = AgriculturalConstants.TEST_SECRET_KEY;

    HnOkHttpClient hnOkHttpClient = new HnOkHttpClient();
    AgriculturalHttpClient agriculturalHttpClient = new AgriculturalHttpClient(hnOkHttpClient);

    ShareInfo shareInfo = new ShareInfo();
    shareInfo.setStartTime("2020-06-11");
    shareInfo.setEndTime("2020-06-12");
    shareInfo.setNonce("abc");
    shareInfo.setPageNo(1);
    shareInfo.setPageSize(10);
    shareInfo.setPower("1");
    shareInfo.setSignAlgorithm("SHA-256");
    shareInfo.setTimestamp(1591932229714L);

    shareInfo.setAccessKey(ACCESS_KEY);
    shareInfo.setSecretKey(SECRET_KEY);

    BaseResult<List<QuestionAndAnswerShareInfo>> baseResult = agriculturalHttpClient
        .questionList(AgriculturalConstants.TEST_QUESTION_LIST_URL, shareInfo);

    System.out.println(baseResult.toString());

Versions

Version
0.0.2
0.0.1