Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j4ng5y/onetimesecret-go
A small Go client library for using the https://onetimesecret.com service
https://github.com/j4ng5y/onetimesecret-go
Last synced: 14 days ago
JSON representation
A small Go client library for using the https://onetimesecret.com service
- Host: GitHub
- URL: https://github.com/j4ng5y/onetimesecret-go
- Owner: j4ng5y
- License: mit
- Created: 2019-11-08T18:36:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T02:56:21.000Z (about 5 years ago)
- Last Synced: 2024-10-22T08:32:50.217Z (2 months ago)
- Language: Go
- Homepage: https://onetimesecret-go.j4ng5y.dev/
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Go Report Card](https://goreportcard.com/badge/github.com/j4ng5y/onetimesecret-go)](https://goreportcard.com/report/github.com/j4ng5y/onetimesecret-go) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/j4ng5y/onetimesecret-go) [![GoDoc](https://godoc.org/github.com/j4ng5y/onetimesecret-go?status.svg)](https://godoc.org/github.com/j4ng5y/onetimesecret-go)
# OneTimeSecret Go Client Library
This is a fairly straight-forward Go implementation of the https://onetimesecret.com service for Go applications
## Installation
`go get -u github.com/j4ng5y/onetimesecret-go`
```go
package mainimport "github.com/j4ng5y/onetimesecret-go"
func main() {
c := onetimesecret.New(&onetimesecret.Credentials{Username:"j4ng5y",APIToken:"abcdefg12345"})
...
}
```## Examples
Please see the [examples](https://github.com/j4ng5y/onetimesecret-go/tree/master/examples) folder.
## Note
If you want to use a custom http client, instead of using the `onetimesecret.New()` function to generate the client, use the `onetimesecret.NewWithOptions()` function.