apple

package
v0.1.1-0...-f9b01a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AuthorizationCode string
	ClientID          string
	ClientSecret      string
	BaseURL           *url.URL
	HTTPClient        *http.Client
}

Client is a client for making REST API requests to Apple authorization servers.

func NewClient

func NewClient(authorizationCode string, appleInfo *model.AppleInfo) *Client

NewClient creates new HTTP client for communicating with Apple REST API servers.

func (*Client) MyProfile

func (c *Client) MyProfile() (User, error)

MyProfile asks for token's owner public profile information. Currently, everything Apple provides us with is an obfuscated unique user identifier.

type User

type User struct {
	ID string
}

User is what we can get about the user from Apple.

Jump to

Keyboard shortcuts

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