func NewAPI(opts APIOptions) *API { c := client.NewClient(client.ClientOptions(opts)) return &API{ Account: &api.Account{c}, Book: &api.Book{c}, Books: &api.Books{c}, User: &api.User{c}, } }
func (a *API) Fork(opts APIOptions) *API { forkedClient := a.Client.Fork(client.ClientOptions(opts)) return NewAPIFromClient(forkedClient) }
func NewAPI(opts APIOptions) *API { c := client.NewClient(client.ClientOptions(opts)) return NewAPIFromClient(c) }