Required ACL: settings
Examples
C#
Go
Java
JavaScript
Kotlin
PHP
Python
Ruby
Scala
Swift
var strategy = client . GetPersonalizationStrategy ();
// Asynchronous
var strategy = await client . GetPersonalizationStrategyAsync ();
strategy , err := client . GetPersonalizationStrategy ()
GetStrategyResponse result = client . getPersonalizationStrategy ();
// Asynchronous
CompletableFuture < GetStrategyResponse > result =
client . getPersonalizationStrategyAsync ();
client
. initPersonalization ()
. getPersonalizationStrategy ()
. then (( personalizationStrategy ) => {
console . log ( personalizationStrategy );
});
client. getPersonalizationStrategy ()
$strategy = $client -> getPersonalizationStrategy ();
strategy = client.get_personalization_strategy()
client = Algolia :: Recommendation :: Client . create ( "YourApplicationID" , "YourWriteAPIKey" )
strategy = client. get_personalization_strategy
client.execute {
get personalizationStrategy
}
personalizationClient. getPersonalizationStrategy { result in
if case . success ( let response) = result {
print ( "Response: \( response ) " )
}
}
Parameters
A mapping of request options to send along with the request.
Response
Score associated to each event. Example: {
"eventsScoring" : [
{
"eventName" : "purchase"
"eventType" : "conversion"
"score" : 100
}
]
}
Event type: click, conversion, or view.
Score associated to each facet. {
"facetsScoring" : [
{
"facetName" : "brand" ,
"score" : 100
}
]
}
Response as JSON
This section shows the JSON response returned by the API.
Each API client wraps this response in language-specific objects, so the structure may vary.
To view the response, use the getLogs method.
Don’t rely on the order of properties—JSON objects don’t preserve key order.
{
"eventsScoring" : [
{
"eventName" : "purchase"
"eventType" : "conversion"
"score" : 100
}
],
"facetsScoring" : [
{
"facetName" : "brand" ,
"score" : 100
}
]
}