// FromEnv creates a new Client // The environment variables `ALGOLIA_APP_ID` and `ALGOLIA_API_KEY` are used. // If useMock is true the client is a fake algolia implementation. func FromEnv(useMock ...bool) Client { return New(env.MustGet("ALGOLIA_APP_ID"), env.MustGet("ALGOLIA_API_KEY"), useMock...) }
func FromEnv() *Client { return New(env.MustGet("KEEN_PROJECT_ID"), env.MustGet("KEEN_API_KEY")) }
func FromEnv() Client { return New(env.MustGet("ALGOLIA_APP_ID"), env.MustGet("ALGOLIA_API_KEY")) }