appleapi

package
v0.0.0-...-802fbde Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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