go-cook-portal/client/apiclient.go

21 lines
346 B
Go
Raw Permalink Normal View History

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