This is the official SDK for the Fluid Pay API written in the Go programming language.
After installing the SDK with go get github.org/fluidpay/fluidpay-go
you first need to initiate the package.
import ( "fluidpay-go" )
fluidpay := Fluidpay{
APIKey: "yourApiKey",
Client: {http.Client},
Ctx: {context.Context},
}
All communication with the API is struct based.
var creUsrReq = CreateUserRequest{
Username: "yourUsername",
Name: "your name",
Phone: "6305555555",
Email: "[email protected]",
Timezone: "CET",
Password: "yourPassword",
Status: "active",
Role: "standard",
}
var creUsrRes UserResponse
var err error
creUsrRes, err = CreateUser(fluidpay, creUsrReq)
if err != nil {
// handle error
}
Further information can be found on the Fluid Pay website.