igo

package module
v0.0.0-...-066b5d6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 12 Imported by: 0

README

igo

Package igo provide an unofficial iCloud API in Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides the iCloud instance

func New

func New() *Client

New creates a new iCloud instance

func (*Client) Close

func (c *Client) Close()

Close ensures everything used is released

func (*Client) EnableDrive

func (c *Client) EnableDrive() *drive.Drive

EnableDrive enables iCloud Drive service

func (*Client) GetPushToken

func (c *Client) GetPushToken() error

GetPushToken gets pushToken

func (*Client) LoadSession

func (c *Client) LoadSession(reader io.Reader) error

LoadSession loads session from a reader

func (*Client) Login

func (c *Client) Login(username, password string) error

Login starts to login

func (*Client) SaveSession

func (c *Client) SaveSession(writer io.Writer) error

SaveSession dumps session to a writer

func (*Client) SetSecurityCode

func (c *Client) SetSecurityCode(securityCode string) error

SetSecurityCode sets the SecurityCode and trusts the Client

func (*Client) TwoFactorAuthenticationIsRequired

func (c *Client) TwoFactorAuthenticationIsRequired() bool

TwoFactorAuthenticationIsRequired checks whether the two factor authentication is required.

Directories

Path Synopsis
cmd
igo
internal

Jump to

Keyboard shortcuts

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