Skip to content

Prompt Credentials Provider for MoneyLover API Client

License

Notifications You must be signed in to change notification settings

nhatthm/moneyloverprompt

Repository files navigation

Prompt Credentials Provider for MoneyLover API Client

GitHub Releases Build Status codecov Go Report Card GoDevDoc Donate

moneyloverprompt uses AlecAivazis/survey to get credentials from the prompt.

Prerequisites

  • Go >= 1.16

Install

go get github.com/nhatthm/moneyloverprompt

Usage

Examples

package mypackage

import (
	"github.com/nhatthm/moneyloverapi"
	"github.com/nhatthm/moneyloverprompt/credentials"
)

func buildClient() (*moneyloverapi.Client, error) {
	c := moneyloverapi.NewClient(
		credentials.WithCredentialsAtLast(),
	)

	return c, nil
}

Donation

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

Paypal donation

paypal

       or scan this