Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrusme/go-fleek
Tiny Go client library for the Fleek API
https://github.com/mrusme/go-fleek
api api-client api-client-go api-clients cloud dfinity fleek fleek-hosting golang golang-library graphql graphql-client internet-computer ipfs tiny
Last synced: 2 months ago
JSON representation
Tiny Go client library for the Fleek API
- Host: GitHub
- URL: https://github.com/mrusme/go-fleek
- Owner: mrusme
- License: gpl-3.0
- Created: 2022-08-01T21:59:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T14:43:51.000Z (8 months ago)
- Last Synced: 2024-10-08T04:48:15.975Z (3 months ago)
- Topics: api, api-client, api-client-go, api-clients, cloud, dfinity, fleek, fleek-hosting, golang, golang-library, graphql, graphql-client, internet-computer, ipfs, tiny
- Language: Go
- Homepage: https://xn--gckvb8fzb.com
- Size: 59.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
go-fleek
========
[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://pkg.go.dev/github.com/mrusme/go-fleek) [![license](http://img.shields.io/badge/license-GPLv3-red.svg?style=flat)](https://raw.githubusercontent.com/mrusme/go-fleek/master/LICENSE)Tiny Go library for the
[Fleek API](https://docs.fleek.co/fleek-api/overview/).## Installation
```sh
go get -u github.com/mrusme/go-fleek
```## Getting Started
### Querying Sites by Team ID
```go
package mainimport (
"log"
"github.com/mrusme/go-fleek"
)func main() {
f := fleek.New("apiKeyHere")sites, err := f.GetSitesByTeamId("my-team")
if err != nil {
log.Panic(err)
}for _, site := range sites {
log.Printf(
"Site ID: %v\nName: %s\nPlatform: %s\n\n",
site.Id,
site.Name,
site.Platform,
)
}
}
```