Files
m3o-go/examples/contact/list/listContactsWithDefaultOffsetAndLimitDefaultLimitIs20/main.go
2022-02-24 22:04:39 +00:00

16 lines
248 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/contact"
)
// List contacts
func main() {
contactService := contact.NewContactService(os.Getenv("M3O_API_TOKEN"))
rsp, err := contactService.List(&contact.ListRequest{})
fmt.Println(rsp, err)
}