go-cook-portal/client/apiclient.go

19 lines
288 B
Go
Raw 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
ServerAddress string
}
func New(serverAddress string) ApiClient {
return ApiClient{
Auth: newAuthClient(serverAddress),
}
}