Files
m3o-go/examples/nft/collections/listCollections/main.go
2021-12-09 15:06:12 +00:00

18 lines
264 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/nft"
)
// Get a list of collections
func main() {
nftService := nft.NewNftService(os.Getenv("M3O_API_TOKEN"))
rsp, err := nftService.Collections(&nft.CollectionsRequest{
Limit: 1,
})
fmt.Println(rsp, err)
}