Class: AppStoreDevApi::Client

Inherits:
Base
  • Object
show all
Defined in:
lib/app_store_dev_api/client.rb,
lib/app_store_dev_api/client/utils.rb,
lib/app_store_dev_api/client/builder.rb,
lib/app_store_dev_api/client/options.rb,
lib/app_store_dev_api/client/registry.rb,
lib/app_store_dev_api/client/authorization.rb

Overview

Client 使用 Base 的 method_missing 机制动态调度所有 API 方法所有端点配置从 schema.json 加载

用法:

client = AppStoreDevApi::Client.new(
  issuer_id: 'your_issuer_id',
  key_id: 'your_key_id',
  private_key: private_key_pem
)

所有 API 方法都可用(共 1,210 个方法):

client.list_apps
client.create_bundle_id(...)
client.delete_user(id: 'user_id')
client.app_info(id: 'app_id')

查看所有可用方法:

client.web_service_endpoint_aliases
# => [:create_accessibility_declaration, :list_apps, ...]

检查方法是否存在:

client.respond_to?(:list_apps)  # => true

方法总数:

client.web_service_endpoint_aliases.size  # => 1210

API 文档:

https://developer.apple.com/documentation/appstoreconnectapi

Defined Under Namespace

Classes: Authorization, Builder, Options, Registry, Utils

Method Summary

Methods inherited from Base

#initialize, #inspect, #method_missing, #respond_to_missing?, #web_service_endpoint_aliases

Constructor Details

This class inherits a constructor from AppStoreDevApi::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AppStoreDevApi::Base