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

https://github.com/letscloud-community/letscloud-go

A Go library for the LetsCloud API
https://github.com/letscloud-community/letscloud-go

cloud go go-library golang letscloud

Last synced: 11 months ago
JSON representation

A Go library for the LetsCloud API

Awesome Lists containing this project

README

          

# LetsCloud: A Go library for the LetsCloud Cloud API

The library’s documentation is available at [GoDoc](https://godoc.org/github.com/letscloud-community/letscloud-go),
the public API documentation is available at [developers.letscloud.io](https://developers.letscloud.io/).

## Example

```go
package main

import (
"context"
"fmt"
"log"
"github.com/letscloud-community/letscloud-go"
)

func main() {
client, err := letscloud.New(token) // or use `export LETSCLOUD_API_KEY=your_api_key`
if err != nil {
log.Fatal(err)
}

profile, err := client.Profile()
if err != nil {
log.Fatal(err)
}

fmt.Println(profile)
}
```

## License

MIT license