类 PartnerClient

java.lang.Object
net.linksfield.cube.partnersdk.sdk.PartnerClient
所有已实现的接口:
Closeable, AutoCloseable

public final class PartnerClient
extends Object
implements Closeable
  • 构造器详细资料

    • PartnerClient

      public PartnerClient​(String accessKey, String privateKey)
      Initialize the SDK
      参数:
      accessKey - AccessKey
      privateKey - PrivateKey
    • PartnerClient

      public PartnerClient​(String accessKey, String privateKey, String acceptLanguage)
      Initialize the SDK Customize the default request headers
      参数:
      accessKey - AccessKey
      privateKey - PrivateKey
      acceptLanguage - Overwrite request header Accept-Language
  • 方法详细资料

    • v1

      public SdkV1 v1()
      Call the version 1.0 signature scheme
      返回:
      SDK
    • v2

      public SdkV2 v2()
      Call the version 2.0 signature scheme
      返回:
      SDK
    • close

      public void close() throws IOException
      Close and release Http request client (maybe httpclient5 httpclient5 or okhttp)
      指定者:
      close 在接口中 AutoCloseable
      指定者:
      close 在接口中 Closeable
      抛出:
      IOException