go-cook-portal/client/apiclient.go

21 lines
346 B
Go

package client
const (
HeaderContentType = "Content-Type"
MIMEApplicationForm = "application/x-www-form-urlencoded"
)
type ApiClient struct {
Auth Auth
Demo DemoApiClient
ServerAddress string
}
func New(serverAddress string) ApiClient {
return ApiClient{
Auth: newAuthClient(serverAddress),
Demo: newDemoClient(serverAddress),
}
}