algoliasearch-client-python icon indicating copy to clipboard operation
algoliasearch-client-python copied to clipboard

Use Secured API Key with SearchClient

Open nikevp opened this issue 1 year ago • 1 comments

  • Algolia Client Version: Latest
  • Language Version: Python3.8

Description

I am trying run search queries using a secured api key with this library. It does not appear SearchClient supports passing in a read only api key. Is a read only key supported by this library?

client = SearchClient.create('YourApplicationID', 'YourWriteAPIKey')

nikevp avatar Sep 10 '22 02:09 nikevp

Is a read only key supported by this library?

Hey, the Algolia clients does not validate API keys, but forward errors from the REST API. You should be able to use any API keys, as long as the method used matches its scope

shortcuts avatar Sep 13 '22 16:09 shortcuts