algolia / algoliasearch-client-python

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/python/?language=python
MIT License
196 stars 67 forks source link

feat: payload for Redirect rule in the search response #515

Closed VladislavFitz closed 3 years ago

VladislavFitz commented 3 years ago

Add support of the new query rule Redirect consequence to the API client.

The format of the new response field to add:

{
 "consequence": {
   "redirect": {
     "url": "https://redirect.to",
     "userParameters": {
       /* Custom user data
       "custom_key_1": "value_1",
       "custom_key_2": "value_2"
       */
     }
   }
 }
}

Internal specs issue: #148

VladislavFitz commented 3 years ago

Closed in favor of #152