Documentation
¶
Index ¶
Constants ¶
View Source
const (
AUTH_TOKEN_URL = `https://appleid.apple.com/auth/token`
)
View Source
const (
AUTH_USERMIGRATIONINFO_URL = `https://appleid.apple.com/auth/usermigrationinfo`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTokenPOSTResp ¶
type AuthTokenPOSTResp struct {
AccessToken string `json:"access_token"`
}
func AuthTokenPOST ¶
func AuthTokenPOST(clientID, clientSecret string) (*AuthTokenPOSTResp, error)
type UserMigrationInfoForSubResp ¶
type UserMigrationInfoForSubResp struct { Sub string `json:"sub"` Email string `json:"email"` IsPrivateEmail bool `json:"is_private_email" ` }
func AuthUsermigrationinfoPOSTForSub ¶
func AuthUsermigrationinfoPOSTForSub(accessToken, transferSub, clientID, clientSecret string) (*UserMigrationInfoForSubResp, error)
type UserMigrationInfoForTransferSubResp ¶
type UserMigrationInfoForTransferSubResp struct {
TransferSub string `json:"transfer_sub"`
}
func AuthUsermigrationinfoPOSTForTransferSub ¶
func AuthUsermigrationinfoPOSTForTransferSub(accessToken, sub, target, clientID, clientSecret string) (*UserMigrationInfoForTransferSubResp, error)
Click to show internal directories.
Click to hide internal directories.