Sep 20, 2024
Recommend API client
The Recommend API client is part of the algoliasearch-client-go
package.
To install it, run:
Copy
1
go get github.com/algolia/algoliasearch-client-go
To use the Recommend client, add this import to your files:
Copy
1
import "github.com/algolia/algoliasearch-client-go/v4/algolia/recommend"
To create an instance of the client:
Copy
1
2
3
4
5
client, err := recommend.NewClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
if err != nil {
// The client can fail to initialize if you pass an invalid parameter.
panic(err)
}
List of methods
Each method makes one request to the Recommend API.
Recommendations
client.GetRecommendations | Retrieve recommendations |
Rules
client.GetRecommendRule | Retrieve a rule |
client.DeleteRecommendRule | Delete a rule |
client.GetRecommendStatus | Check task status |
client.SearchRecommendRules | Search for rules |
client.BatchRecommendRules | Create or update a batch of Recommend Rules |
Did you find this page helpful?