Go client
The Go client is at https://github.com/lab5e/go-spanapi.
Usage
Example fetching collection data
package main
import (
"fmt"
"github.com/lab5e/go-spanapi/v4"
"github.com/lab5e/go-spanapi/v4/apitools"
)
client := spanapi.NewAPIClient(
spanapi.NewConfiguration()
)
ctx, done := apitools.ContextWithAuthAndTimeout("myToken", time.Second*60)
defer done()
collectionData, _, err := client.CollectionsApi
.ListCollectionData(ctx, "myCollectionID").Execute()
fmt.Printf("%+v\n", collectionData) // { data: [ ... ] }
More examples are available in the go-spanapi GitHub repository.