boursorama

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() bank.Bank

New returns an instance of Boursorama with the specified credentials. It is meant to be used by the banks module as it returns the Bank interface

Types

type Boursorama

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

Boursorama enables to connect to Boursorama Bank and to retrieve the list of accounts as well as the list of operations for each account. This structure can be instanced by "hand" (Username and Password must be given) or through the New method.

func (*Boursorama) Accounts

func (b *Boursorama) Accounts() ([]*bank.Account, error)

Accounts returns the list of accounts detained by the user.

func (*Boursorama) Login

func (b *Boursorama) Login(username, pwd []byte,
	ctx context.Context, q chan<- string, a <-chan string) error

Login connects to Boursorama Banque. Credentials have been given when instancing Boursorama. Questions like 2FA code may be asked through the prompt channel (this method will block until it gets an answer).

func (*Boursorama) Logout

func (b *Boursorama) Logout() error

Logout disconnects the user from Boursorama Banque. It returns an error if the user was already disconnected.

func (*Boursorama) Transactions

func (b *Boursorama) Transactions(account *bank.Account, after time.Time) ([]*bank.Transaction, error)

Transactions returns a list of transactions that have been performed for a specific account after a specified date.

Jump to

Keyboard shortcuts

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