Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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,
)
}
}
```