Skip to content
flowswissPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

GoClient

This is the official API client, written in Go, for accessing the Flow Swiss and Cloudbit APIs. Our API Documentation can be found at my.flow.swiss/#/doc or my.cloudbit.ch/#/doc.

Installation

go get github.com/flowswiss/goclient/v2

Example

package main

import (
	"context"
	"fmt"

	"github.com/flowswiss/goclient/v2"
	"github.com/flowswiss/goclient/v2/core"
)

func main() {
	client := goclient.WithToken("your-application-token")

	res, err := client.Compute.Server.List(context.Background(), core.Cursor{
		Page:    1,
		PerPage: 5,
	})

	if err != nil {
		fmt.Println("error listing servers: ", err)
	}

	for _, server := range res.Items {
		fmt.Println("found server with id ", server.ID)
	}
}

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages