client

package
v0.0.0-...-86a5bf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized   = errors.New("unauthorized, check your credentials")
	ErrInternalServer = errors.New("internal server error")
	ErrUnkown         = errors.New("unknown error")
)

Shared error between methods go here

View Source
var (
	ErrNotificationEndpointNotFound = errors.New("notification endpoint not found, it may not have been configured in the App Store Connect dashboard")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

A wrapper on `*http.Client` which adds the required headers for the App Store Connect API and offer QoL methods for making requests.

func New

func New(config ClientConfig) *Client

func (*Client) RequestTestNotification

func (c *Client) RequestTestNotification() (string, error)

Call the StoreKit API to request a test server to server notification.

type ClientConfig

type ClientConfig struct {
	IssuerId   string
	BundleId   string
	KeyId      string
	PrivateKey *ecdsa.PrivateKey
	UseSandbox bool
}

Metadata necessary to authenticate with the App Store Connect API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL