Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Aug 2, 2022
1 parent 6295f48 commit 9d394cb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
go-render
=========
[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://pkg.go.dev/github.com/mrusme/go-render) [![license](http://img.shields.io/badge/license-GPLv3-red.svg?style=flat)](https://raw.githubusercontent.com/mrusme/go-render/master/LICENSE)


Tiny Go library for the
[Render API](https://api-docs.render.com/reference/introduction).


## Installation

```sh
go get -u github.com/mrusme/go-render
```


## Getting Started


### Querying Sites by Team ID

```go
package main

import (
"log"
"encoding/json"
"github.com/mrusme/go-render"
)

func main() {
r := render.New("apiKeyHere")

services, err := r.ListServices()
if err != nil {
log.Panic(err)
}

for _, service := range services {
b, _ := json.MarshalIndent(service, "", " ")
log.Printf("%s\n\n", string(b))
}
}
```

0 comments on commit 9d394cb

Please sign in to comment.