https://github.com/nhatthm/moneyloverprompt
Prompt Credentials Provider for MoneyLover API Client
https://github.com/nhatthm/moneyloverprompt
api go golang moneylover moneyloverapi
Last synced: about 2 months ago
JSON representation
Prompt Credentials Provider for MoneyLover API Client
- Host: GitHub
- URL: https://github.com/nhatthm/moneyloverprompt
- Owner: nhatthm
- License: mit
- Created: 2021-04-29T15:40:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-25T07:45:45.000Z (6 months ago)
- Last Synced: 2025-02-10T09:45:04.048Z (4 months ago)
- Topics: api, go, golang, moneylover, moneyloverapi
- Language: Go
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prompt Credentials Provider for MoneyLover API Client
[](https://github.com/nhatthm/moneyloverprompt/releases/latest)
[](https://github.com/nhatthm/moneyloverprompt/actions/workflows/test.yaml)
[](https://codecov.io/gh/nhatthm/moneyloverprompt)
[](https://goreportcard.com/report/github.com/nhatthm/httpmock)
[](https://pkg.go.dev/github.com/nhatthm/moneyloverprompt)
[](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)`moneyloverprompt` uses [AlecAivazis/survey](https://github.com/AlecAivazis/survey) to get credentials from the prompt.
## Prerequisites
- `Go >= 1.16`
## Install
```bash
go get github.com/nhatthm/moneyloverprompt
```## Usage
**Examples**
```go
package mypackageimport (
"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
[](https://www.paypal.com/donate/?hosted_button_id=PJZSGJN57TDJY)
or scan this
![]()