Skip to content

nhatthm/n26aas

Repository files navigation

n26api as a Service

GitHub Releases Build Status codecov Go Report Card GoDevDoc Donate

n26aas provides n26api services using service locator pattern.

Prerequisites

  • Go >= 1.20

Install

go get github.com/nhatthm/n26aas

Usage

Examples

package mypackage

import (
	"github.com/google/uuid"
	"github.com/nhatthm/n26aas"
	"github.com/nhatthm/n26api"
)

func buildClient() (*n26api.Client, error) {
	deviceID := uuid.New()
	c := n26aas.NewClient(deviceID,
		n26api.WithUsername("john.doe"),
		n26api.WithPassword("123456"),
	)

	return c, nil
}

Providers

See https://github.com/nhatthm/n26aas/blob/master/provider.go

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Paypal donation

paypal

       or scan this