Files
m3o-go/examples/helloworld/call/callTheHelloworldService.go
2021-10-29 06:38:17 +00:00

18 lines
355 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/go.m3o.com/helloworld"
)
// Call returns a personalised "Hello $name" response
func CallTheHelloworldService() {
helloworldService := helloworld.NewHelloworldService(os.Getenv("M3O_API_TOKEN"))
rsp, err := helloworldService.Call(&helloworld.CallRequest{
Name: "John",
})
fmt.Println(rsp, err)
}