Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Secured API Key with SearchClient #547

Closed
nikevp opened this issue Sep 10, 2022 · 1 comment
Closed

Use Secured API Key with SearchClient #547

nikevp opened this issue Sep 10, 2022 · 1 comment

Comments

@nikevp
Copy link

nikevp commented Sep 10, 2022

  • 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')
@shortcuts
Copy link
Member

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

@millotp millotp closed this as completed Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants