Documentation ¶
Index ¶
- type Achievement
- type AchievementLocalization
- type AchievementLocalizationUpdate
- type AchievementUpdate
- type App
- type AppScreenshotSet
- type AppVersion
- type AppVersionLocalization
- type AppVersionLocalizationUpdate
- type Asset
- type AssetDeliveryState
- type AssetState
- type AssetStateError
- type Client
- func (c *Client) AppScreenshotSetByID(ctx context.Context, id string) (*Resource[AppScreenshotSet], error)
- func (c *Client) CreateAchievement(ctx context.Context, gameCenter *Resource[GameCenter], ach *Achievement) (*Resource[Achievement], error)
- func (c *Client) CreateAchievementImage(ctx context.Context, loc *Resource[AchievementLocalization], name string, ...) (*Resource[Asset], error)
- func (c *Client) CreateAchievementLocalization(ctx context.Context, ach *Resource[Achievement], loc *AchievementLocalization) (*Resource[AchievementLocalization], error)
- func (c *Client) CreateAppScreenshot(ctx context.Context, set *Resource[AppScreenshotSet], name string, data []byte) (*Resource[Asset], error)
- func (c *Client) DeleteAchievement(ctx context.Context, ach *Resource[Achievement]) error
- func (c *Client) DeleteAchievementByID(ctx context.Context, id string) error
- func (c *Client) DeleteAchievementImage(ctx context.Context, asset *Resource[Asset]) error
- func (c *Client) DeleteAchievementImageByID(ctx context.Context, id string) error
- func (c *Client) DeleteAchievementLocalization(ctx context.Context, ach *Resource[AchievementLocalization]) error
- func (c *Client) DeleteAchievementLocalizationByID(ctx context.Context, id string) error
- func (c *Client) GetAchievementByID(ctx context.Context, id string) (*Resource[Achievement], error)
- func (c *Client) GetAchievementImage(ctx context.Context, ach *Resource[AchievementLocalization]) (*Resource[Asset], error)
- func (c *Client) GetAchievementImageByID(ctx context.Context, id string) (*Resource[Asset], error)
- func (c *Client) GetAchievementLocalizationByID(ctx context.Context, id string) (*Resource[AchievementLocalization], error)
- func (c *Client) GetApp(ctx context.Context, id string) (*Resource[App], error)
- func (c *Client) GetAppVersionByID(ctx context.Context, id string) (*Resource[AppVersion], error)
- func (c *Client) GetAppVersionLocalizationByID(ctx context.Context, id string) (*Resource[AppVersionLocalization], error)
- func (c *Client) GetGameCenter(ctx context.Context, app *Resource[App]) (*Resource[GameCenter], error)
- func (c *Client) GetGameCenterByID(ctx context.Context, id string) (*Resource[GameCenter], error)
- func (c *Client) ListAchievementLocalizations(ctx context.Context, ach *Resource[Achievement]) ([]Resource[AchievementLocalization], error)
- func (c *Client) ListAchievements(ctx context.Context, gameCenter *Resource[GameCenter]) ([]Resource[Achievement], error)
- func (c *Client) ListAppScreenshotSets(ctx context.Context, localization *Resource[AppVersionLocalization]) ([]Resource[AppScreenshotSet], error)
- func (c *Client) ListAppVersionLocalizations(ctx context.Context, version *Resource[AppVersion]) ([]Resource[AppVersionLocalization], error)
- func (c *Client) ListAppVersions(ctx context.Context, app *Resource[App]) ([]Resource[AppVersion], error)
- func (c *Client) ListApps(ctx context.Context) ([]Resource[App], error)
- func (c *Client) UpdateAchievement(ctx context.Context, upd AchievementUpdate) (*Resource[Achievement], error)
- func (c *Client) UpdateAchievementLocalization(ctx context.Context, upd AchievementLocalizationUpdate) (*Resource[AchievementLocalization], error)
- func (c *Client) UpdateAppVersionLocalization(ctx context.Context, upd AppVersionLocalizationUpdate) (*Resource[AppVersionLocalization], error)
- type Config
- type DisplayType
- type GameCenter
- type HTTPClient
- type HttpHeader
- type ImageAsset
- type Links
- type Locale
- type Resource
- type TokenSource
- type UploadOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Achievement ¶
type Achievement struct { ReferenceName string `json:"referenceName"` VendorIdentifier string `json:"vendorIdentifier"` Points int `json:"points"` Repeatable bool `json:"repeatable"` ShowBeforeEarned bool `json:"showBeforeEarned"` }
https://developer.apple.com/documentation/appstoreconnectapi/gamecenterachievement/attributes
type AchievementLocalization ¶
type AchievementUpdate ¶
type App ¶
type App struct { Name string `json:"name"` BundleID string `json:"bundleId"` SKU string `json:"sku"` PrimaryLocale Locale `json:"primaryLocale"` }
https://developer.apple.com/documentation/appstoreconnectapi/app/attributes
type AppScreenshotSet ¶
type AppScreenshotSet struct {
DisplayType DisplayType `json:"screenshotDisplayType"`
}
type AppVersion ¶
type AppVersion struct { Platform string `json:"platform"` AppStoreState string `json:"appStoreState"` AppVersionState string `json:"appVersionState"` Version string `json:"versionString"` Copyright string `json:"copyright"` Downloadable bool `json:"downloadable"` CreatedDate time.Time `json:"createdDate"` ReleaseDate time.Time `json:"earliestReleaseDate"` ReleaseType string `json:"releaseType"` ReviewType string `json:"reviewType"` }
type AppVersionLocalization ¶
type AppVersionLocalization struct { Locale Locale `json:"locale"` WhatsNew string `json:"whatsNew"` Description string `json:"description"` Promotional string `json:"promotionalText"` Keywords string `json:"keywords"` MarketingURL string `json:"marketingUrl"` SupportURL string `json:"supportUrl"` }
type AppVersionLocalizationUpdate ¶
type AppVersionLocalizationUpdate struct { ID string `json:"-"` WhatsNew string `json:"whatsNew,omitempty"` Description string `json:"description,omitempty"` Promotional string `json:"promotionalText,omitempty"` Keywords string `json:"keywords,omitempty"` MarketingURL string `json:"marketingUrl,omitempty"` SupportURL string `json:"supportUrl,omitempty"` }
type Asset ¶
type Asset struct { Name string `json:"fileName"` Size int `json:"fileSize"` State AssetDeliveryState `json:"assetDeliveryState"` Image ImageAsset `json:"imageAsset"` Operations []UploadOperation `json:"uploadOperations"` }
type AssetDeliveryState ¶
type AssetDeliveryState struct { State AssetState `json:"state"` Errors []AssetStateError `json:"errors"` Warnings []AssetStateError `json:"warnings"` }
func (AssetDeliveryState) Error ¶
func (s AssetDeliveryState) Error() error
func (AssetDeliveryState) IsComplete ¶
func (s AssetDeliveryState) IsComplete() bool
type AssetState ¶
type AssetState string
const ( AssetStateReadyForUpload AssetState = "AWAITING_UPLOAD" AssetStateUploadComplete AssetState = "UPLOAD_COMPLETE" AssetStateComplete AssetState = "COMPLETE" AssetStateFailed AssetState = "FAILED" )
type AssetStateError ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpClient HTTPClient, tokenSource TokenSource) *Client
func (*Client) AppScreenshotSetByID ¶
func (c *Client) AppScreenshotSetByID(ctx context.Context, id string) (*Resource[AppScreenshotSet], error)
https://developer.apple.com/documentation/appstoreconnectapi/read_app_screenshot_set_information
func (*Client) CreateAchievement ¶
func (c *Client) CreateAchievement(ctx context.Context, gameCenter *Resource[GameCenter], ach *Achievement) (*Resource[Achievement], error)
https://developer.apple.com/documentation/appstoreconnectapi/create_an_achievement
func (*Client) CreateAchievementImage ¶
func (c *Client) CreateAchievementImage(ctx context.Context, loc *Resource[AchievementLocalization], name string, data []byte) (*Resource[Asset], error)
https://developer.apple.com/documentation/appstoreconnectapi/create_an_achievement_image
func (*Client) CreateAchievementLocalization ¶
func (c *Client) CreateAchievementLocalization(ctx context.Context, ach *Resource[Achievement], loc *AchievementLocalization) (*Resource[AchievementLocalization], error)
https://developer.apple.com/documentation/appstoreconnectapi/create_an_achievement_localization
func (*Client) CreateAppScreenshot ¶
func (*Client) DeleteAchievement ¶
https://developer.apple.com/documentation/appstoreconnectapi/delete_an_achievement
func (*Client) DeleteAchievementByID ¶
func (*Client) DeleteAchievementImage ¶
https://developer.apple.com/documentation/appstoreconnectapi/delete_an_achievement_image
func (*Client) DeleteAchievementImageByID ¶
func (*Client) DeleteAchievementLocalization ¶
func (c *Client) DeleteAchievementLocalization(ctx context.Context, ach *Resource[AchievementLocalization]) error
https://developer.apple.com/documentation/appstoreconnectapi/delete_an_achievement_localization
func (*Client) DeleteAchievementLocalizationByID ¶
func (*Client) GetAchievementByID ¶
https://developer.apple.com/documentation/appstoreconnectapi/read_achievement_information
func (*Client) GetAchievementImage ¶
func (c *Client) GetAchievementImage(ctx context.Context, ach *Resource[AchievementLocalization]) (*Resource[Asset], error)
https://developer.apple.com/documentation/appstoreconnectapi/read_achievement_image_information
func (*Client) GetAchievementImageByID ¶
func (*Client) GetAchievementLocalizationByID ¶
func (*Client) GetApp ¶
https://developer.apple.com/documentation/appstoreconnectapi/read_app_information
func (*Client) GetAppVersionByID ¶
https://developer.apple.com/documentation/appstoreconnectapi/read_app_store_version_information
func (*Client) GetAppVersionLocalizationByID ¶
func (*Client) GetGameCenter ¶
func (*Client) GetGameCenterByID ¶
func (*Client) ListAchievementLocalizations ¶
func (c *Client) ListAchievementLocalizations(ctx context.Context, ach *Resource[Achievement]) ([]Resource[AchievementLocalization], error)
func (*Client) ListAchievements ¶
func (c *Client) ListAchievements(ctx context.Context, gameCenter *Resource[GameCenter]) ([]Resource[Achievement], error)
https://developer.apple.com/documentation/appstoreconnectapi/list_all_achievements
func (*Client) ListAppScreenshotSets ¶
func (c *Client) ListAppScreenshotSets(ctx context.Context, localization *Resource[AppVersionLocalization]) ([]Resource[AppScreenshotSet], error)
func (*Client) ListAppVersionLocalizations ¶
func (c *Client) ListAppVersionLocalizations(ctx context.Context, version *Resource[AppVersion]) ([]Resource[AppVersionLocalization], error)
func (*Client) ListAppVersions ¶
func (c *Client) ListAppVersions(ctx context.Context, app *Resource[App]) ([]Resource[AppVersion], error)
https://developer.apple.com/documentation/appstoreconnectapi/list_all_app_store_versions_for_an_app
func (*Client) UpdateAchievement ¶
func (c *Client) UpdateAchievement(ctx context.Context, upd AchievementUpdate) (*Resource[Achievement], error)
https://developer.apple.com/documentation/appstoreconnectapi/modify_an_achievement
func (*Client) UpdateAchievementLocalization ¶
func (c *Client) UpdateAchievementLocalization(ctx context.Context, upd AchievementLocalizationUpdate) (*Resource[AchievementLocalization], error)
https://developer.apple.com/documentation/appstoreconnectapi/edit_an_achievement_localization
func (*Client) UpdateAppVersionLocalization ¶
func (c *Client) UpdateAppVersionLocalization(ctx context.Context, upd AppVersionLocalizationUpdate) (*Resource[AppVersionLocalization], error)
type DisplayType ¶
type DisplayType string
const ( DisplayTypeAppIPhone67 DisplayType = "APP_IPHONE_67" DisplayTypeAppIPhone65 DisplayType = "APP_IPHONE_65" DisplayTypeAppIPhone61 DisplayType = "APP_IPHONE_61" DisplayTypeAppIPhone58 DisplayType = "APP_IPHONE_58" DisplayTypeAppIPhone55 DisplayType = "APP_IPHONE_55" DisplayTypeAppIPhone47 DisplayType = "APP_IPHONE_47" DisplayTypeAppIPhone40 DisplayType = "APP_IPHONE_40" DisplayTypeAppIPhone35 DisplayType = "APP_IPHONE_35" DisplayTypeAppIPadPro3Gen129 DisplayType = "APP_IPAD_PRO_3GEN_129" DisplayTypeAppIPadPro3Gen11 DisplayType = "APP_IPAD_PRO_3GEN_11" DisplayTypeAppIPadPro129 DisplayType = "APP_IPAD_PRO_129" DisplayTypeAppIPad105 DisplayType = "APP_IPAD_105" DisplayTypeAppIPad97 DisplayType = "APP_IPAD_97" DisplayTypeAppWatchUltra DisplayType = "APP_WATCH_ULTRA" DisplayTypeAppWatchSeries7 DisplayType = "APP_WATCH_SERIES_7" DisplayTypeAppWatchSeries4 DisplayType = "APP_WATCH_SERIES_4" DisplayTypeAppWatchSeries3 DisplayType = "APP_WATCH_SERIES_3" DisplayTypeAppDesktop DisplayType = "APP_DESKTOP" DisplayTypeAppAppleTV DisplayType = "APP_APPLE_TV" DisplayTypeIMessageAppIPhone67 DisplayType = "IMESSAGE_APP_IPHONE_67" DisplayTypeIMessageAppIPhone65 DisplayType = "IMESSAGE_APP_IPHONE_65" DisplayTypeIMessageAppIPhone61 DisplayType = "IMESSAGE_APP_IPHONE_61" DisplayTypeIMessageAppIPhone58 DisplayType = "IMESSAGE_APP_IPHONE_58" DisplayTypeIMessageAppIPhone55 DisplayType = "IMESSAGE_APP_IPHONE_55" DisplayTypeIMessageAppIPhone47 DisplayType = "IMESSAGE_APP_IPHONE_47" DisplayTypeIMessageAppIPhone40 DisplayType = "IMESSAGE_APP_IPHONE_40" DisplayTypeIMessageAppIPadPro3Gen129 DisplayType = "IMESSAGE_APP_IPAD_PRO_3GEN_129" DisplayTypeIMessageAppIPadPro3Gen11 DisplayType = "IMESSAGE_APP_IPAD_PRO_3GEN_11" DisplayTypeIMessageAppIPadPro129 DisplayType = "IMESSAGE_APP_IPAD_PRO_129" DisplayTypeIMessageAppIPad105 DisplayType = "IMESSAGE_APP_IPAD_105" DisplayTypeIMessageAppIPad97 DisplayType = "IMESSAGE_APP_IPAD_97" DisplayTypeAppAppleVisionPro DisplayType = "APP_APPLE_VISION_PRO" )
type GameCenter ¶
type GameCenter struct { ArcadeEnabled bool `json:"arcadeEnabled"` ChallengeEnabled bool `json:"challengeEnabled"` }
https://developer.apple.com/documentation/appstoreconnectapi/gamecenterdetail/attributes
type HttpHeader ¶
type ImageAsset ¶
type Locale ¶
type Locale string
const ( LocaleArabic Locale = "ar-SA" LocaleCatalan Locale = "ca" LocaleChineseSimplified Locale = "zh-Hans" LocaleChineseTraditional Locale = "zh-Hant" LocaleCroatian Locale = "hr" LocaleCzech Locale = "cs" LocaleDanish Locale = "da" LocaleDutch Locale = "nl-NL" LocaleEnglishAustralia Locale = "en-AU" LocaleEnglishCanada Locale = "en-CA" LocaleEnglishUK Locale = "en-GB" LocaleEnglishUS Locale = "en-US" LocaleFinnish Locale = "fi" LocaleFrench Locale = "fr-FR" LocaleFrenchCanada Locale = "fr-CA" LocaleGerman Locale = "de-DE" LocaleGreek Locale = "el" LocaleHebrew Locale = "he" LocaleHindi Locale = "hi" LocaleHungarian Locale = "hu" LocaleIndonesian Locale = "id" LocaleItalian Locale = "it" LocaleJapanese Locale = "ja" LocaleKorean Locale = "ko" LocaleMalay Locale = "ms" LocaleNorwegian Locale = "nb" LocalePolish Locale = "pl" LocalePortugueseBrazil Locale = "pt-BR" LocalePortuguesePortugal Locale = "pt-PT" LocaleRomanian Locale = "ro" LocaleRussian Locale = "ru" LocaleSlovak Locale = "sk" LocaleSpanishMexico Locale = "es-MX" LocaleSpanishSpain Locale = "es-ES" LocaleSwedish Locale = "sv" LocaleThai Locale = "th" LocaleTurkish Locale = "tr" LocaleUkrainian Locale = "uk" LocaleVietnamese Locale = "vi" )
type TokenSource ¶
func NewTokenSource ¶
func NewTokenSource(config Config) (TokenSource, error)
type UploadOperation ¶
type UploadOperation struct { Method string `json:"method"` URL string `json:"url"` Offset int `json:"offset"` Length int `json:"length"` Headers []HttpHeader `json:"requestHeaders"` }
Source Files ¶
- achievements.go
- achievements_create.go
- achievements_delete.go
- achievements_get.go
- achievements_list.go
- achievements_update.go
- app_screenshot_sets.go
- app_screenshot_sets_get.go
- app_screenshot_sets_list.go
- app_screenshots_create.go
- app_version_localizations.go
- app_version_localizations_get.go
- app_version_localizations_list.go
- app_version_localizations_update.go
- app_versions.go
- app_versions_get.go
- app_versions_list.go
- apps.go
- apps_get.go
- apps_list.go
- appstore.go
- appstore_create.go
- appstore_delete.go
- appstore_get.go
- appstore_list.go
- appstore_update.go
- assets.go
- assets_upload.go
- game_center.go
- game_center_get.go
- locale.go
- token_source.go