Module: JPSClient::API::AppleCert

Included in:
Client
Defined in:
lib/jpsclient/api/apple_cert.rb

Overview

AppleCert 相关 API 处理苹果证书相关接口

Instance Method Summary collapse

Instance Method Details

#get_apple_cert_list(apple_dev_account: nil, bundle_id: nil, platform: nil, profile_type: nil, page_no:, page_size:) ⇒ Hash

Get Apple Cert List 获取苹果证书列表

Parameters:

  • apple_dev_account (String) (defaults to: nil)

    苹果开发者账号(可选)

  • bundle_id (String) (defaults to: nil)

    Bundle ID(可选)

  • platform (String) (defaults to: nil)

    平台类型(可选): IOS, MAC_OS

  • profile_type (String) (defaults to: nil)

    描述文件类型(可选): IOS_APP_DEVELOPMENT, MAC_APP_DEVELOPMENT, IOS_APP_ADHOC, IOS_APP_STORE, MAC_APP_DIRECT

  • page_no (Integer)

    当前页数(必填)

  • page_size (Integer)

    每页记录数(必填)

Returns:

  • (Hash)

    API响应,包含 appleCerts 数组和 total 总数

Raises:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/jpsclient/api/apple_cert.rb', line 17

def get_apple_cert_list(apple_dev_account: nil, bundle_id: nil, platform: nil, profile_type: nil, page_no:, page_size:)
  config = @request_config && @request_config["apple_cert_list"]
  raise JPSClient::ExceptionError, "Missing config for apple_cert_list" unless config && config["url"]

  path = config["url"]

  # 构建请求参数
  params = {
    pageNo: page_no,
    pageSize: page_size
  }
  params[:appleDevAccount] =  if 
  params[:bundleId] = bundle_id if bundle_id
  params[:platform] = platform if platform
  params[:profileType] = profile_type if profile_type

  return request_with_auth(:get, path, params: params)
end