Documentation
¶
Index ¶
- Variables
- type Challenge
- type Client
- func (c *Client) AppExists(ctx context.Context, session *Session, bundleID string) (bool, error)
- func (c *Client) CheckKeyAccess(ctx context.Context, session *Session, kind KeyKind) error
- func (c *Client) CompleteTwoFactor(ctx context.Context, session *Session, code string) error
- func (c *Client) CreateApp(ctx context.Context, session *Session, name, bundleID, sku string) error
- func (c *Client) CreateAppStoreConnectKey(ctx context.Context, session *Session, name string) (*Key, error)
- func (c *Client) CreateInAppPurchaseKey(ctx context.Context, session *Session, name string) (*Key, error)
- func (c *Client) FetchVendorNumber(ctx context.Context, session *Session) (string, error)
- func (c *Client) Login(ctx context.Context, email, password string) (*Session, error)
- func (c *Client) PrepareTwoFactor(ctx context.Context, session *Session, useSMS bool, phoneNumber string) (*Challenge, error)
- func (c *Client) RegisterBundleID(ctx context.Context, session *Session, identifier, name string) error
- func (c *Client) SelectProvider(ctx context.Context, session *Session, providerID int64) error
- type Key
- type KeyKind
- type Options
- type Provider
- type Session
- type TwoFactorRequiredError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCredentials = errors.New("incorrect Apple Account email or password") ErrAccountAction = errors.New("complete the pending Apple Account prompt in a browser and try again") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AppExists ¶
AppExists reports whether an App Store Connect app record exists for the bundle ID on the selected team.
func (*Client) CheckKeyAccess ¶
func (*Client) CompleteTwoFactor ¶
func (*Client) CreateApp ¶
CreateApp creates the App Store Connect app record via the modern iris API, mirroring Spaceship's ConnectAPI::Tunes#post_app: one JSON:API graph of app, appInfo, localizations, and an initial iOS version, wired together with ${placeholder} IDs the server resolves.
func (*Client) CreateAppStoreConnectKey ¶
func (*Client) CreateInAppPurchaseKey ¶
func (*Client) FetchVendorNumber ¶
FetchVendorNumber returns the provider's sales-report vendor number using the internal endpoint behind the App Store Connect payments page (the same place the docs tell users to copy it from manually). Best-effort: callers should fall back to asking the user when this errors.
func (*Client) PrepareTwoFactor ¶
type TwoFactorRequiredError ¶
type TwoFactorRequiredError struct{}
func (*TwoFactorRequiredError) Error ¶
func (*TwoFactorRequiredError) Error() string
Click to show internal directories.
Click to hide internal directories.