Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skoef/go-zonnepanelendelen
Go API client for zonnepanelendelen.nl
https://github.com/skoef/go-zonnepanelendelen
Last synced: about 1 month ago
JSON representation
Go API client for zonnepanelendelen.nl
- Host: GitHub
- URL: https://github.com/skoef/go-zonnepanelendelen
- Owner: skoef
- License: mit
- Created: 2022-01-28T11:37:41.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T10:54:22.000Z (over 2 years ago)
- Last Synced: 2024-06-21T12:52:44.703Z (6 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zonnepanelendelen API Golang client
[![Go Report Card](https://goreportcard.com/badge/github.com/skoef/go-zonnepanelendelen)](https://goreportcard.com/report/github.com/skoef/go-zonnepanelendelen) [![Documentation](https://godoc.org/github.com/skoef/go-zonnepanelendelen?status.svg)](http://godoc.org/github.com/skoef/go-zonnepanelendelen)
This is a simple golang library for interfacing with the API of the investment project [Zonnepanelendelen](https://zonnepanelendelen.nl). Zonnepanelendelen allows you to invest in solar panels when you don't have any more room left on your roof or can't put any solar panels on your roof at all.
For simplicity sake, currently only several API endpoints are supported. If you miss specific features in the library, please open an issue!
## Example usage
An example for using the API client is shown below, where the credentials are those you would login to https://mijnstroom.zonnepanelendelen.nl/ with:
```golang
package mainimport (
"fmt"zonnepanelendelen "github.com/skoef/go-zonnepanelendelen"
)func main() {
api := zonnepanelendelen.New("johndoe", "s3cr3t")
projects, err := api.GetProjects()
if err != nil {
panic(err)
}fmt.Printf("found %d projects in your Zonnepanelendelen account\n", len(projects))
}
```