experimental client
# spicedb
d
hey 👋 I want to use the experimentalservice using the go sdk, specifically the bulkcheckaccess endpoint. Is there an example on how to initialize it out there? I'm looking into
Copy code
authzed.ClientWithExperimental{
        Client:                    authzed.NewClient(
                                     endpoint,
                                     opts...,
                                 ),
        ExperimentalServiceClient: v1.NewExperimentalServiceClient(),
    }
currently, but
NewExperimentalServiceClient(...)
needs a parameter of type
grpc.ClientConnInterface
and I don't know if that's a) even the right approach after all, and b) what to add there. Any help is highly appreciated 🙂
e
Instead of
authzed.NewClient
you can use
authzed.NewClientWithExperimentalAPIs
to get one with the experimental apis enabled you would need a raw grpc conn to build the client object directly, but you probably don't need to do that
d
all good, thanks 🙂 Jakes link helped a lot. I just chose the wrong method