-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Andrew Waters edited this page Apr 5, 2019
·
4 revisions
Welcome to the gomo quickstart.
gomo is a Go client for the Moltin API.
Install it with go get github.com/andrew-waters/gomo
You can instantiate a client using gomo.NewClient():
client := gomo.NewClient(
gomo.NewClientCredentials(
os.Getenv("CLIENT_ID"),
os.Getenv("CLIENT_SECRET"),
),
)If you would like to use a custom endpoint (ie not https://api.moltin.com) you can make this func call before working with the client:
client.CustomEndpoint("https://yourendpoint.com")