mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 10:34:27 +00:00
18 lines
303 B
Go
Executable File
18 lines
303 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/contact"
|
|
)
|
|
|
|
// Read contact details
|
|
func main() {
|
|
contactService := contact.NewContactService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := contactService.Read(&contact.ReadRequest{
|
|
Id: "42e48a3c-6221-11ec-96d2-acde48001122",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|