Skip to content

Latest commit

 

History

History
84 lines (65 loc) · 3.1 KB

AlipayOpenServicemarketPromotiontaskRelationApi.md

File metadata and controls

84 lines (65 loc) · 3.1 KB

AlipayOpenServicemarketPromotiontaskRelationApi

All URIs are relative to https://openapi.alipay.com

Method HTTP request Description
query GET /v3/alipay/open/servicemarket/promotiontask/relation/query 服务商推广关系查询

query

AlipayOpenServicemarketPromotiontaskRelationQueryResponseModel query(commodityId, pageSize, pageNum)

服务商推广关系查询

用于开发服务商查询已与其达成推广关系的地推服务商信息

Example

// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayOpenServicemarketPromotiontaskRelationApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://openapi.alipay.com");
    // 设置alipayConfig参数(全局设置一次)
    AlipayConfig config = new AlipayConfig();
    config.setAppId("app_id");
    config.setPrivateKey("private_key");
    config.setAlipayPublicKey("alipay_public_key");
    config.setEncryptKey("encrypt_key");
    defaultClient.setAlipayConfig(config);

    AlipayOpenServicemarketPromotiontaskRelationApi apiInstance = new AlipayOpenServicemarketPromotiontaskRelationApi(defaultClient);
    String commodityId = "SS010101000000003954"; // String | 服务商品ID,并不是uid,取值来源于前端的获取
    Integer pageSize = 10; // Integer | 每页数量,范围(1-100)。默认:10
    Integer pageNum = 1; // Integer | 当前页码,从1开始。默认:1
    try {
      AlipayOpenServicemarketPromotiontaskRelationQueryResponseModel result = apiInstance.query(commodityId, pageSize, pageNum);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling AlipayOpenServicemarketPromotiontaskRelationApi#query");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
commodityId String 服务商品ID,并不是uid,取值来源于前端的获取 [optional]
pageSize Integer 每页数量,范围(1-100)。默认:10 [optional]
pageNum Integer 当前页码,从1开始。默认:1 [optional]

Return type

AlipayOpenServicemarketPromotiontaskRelationQueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -