Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article demonstrates how to call a REST API endpoint for Personalizer service. The Personalizer API allows your application to choose the best experience to show to your users, learning from their real-time behavior. You can use the Personalizer service to determine what product to suggest to shoppers or to figure out the optimal position for an advertisement.You can use the Personalizer service to determine what product to suggest to shoppers or to figure out the optimal position for an advertisement.
Call the Personalizer endpoint
Start by creating an Azure Cognitive Services resource, and within that specifically a Personalizer resource. For instructions, see Create a Cognitive Services resource using the portal.
From the Azure Portal, copy the key and endpoint required to make the call. For instructions, see Get the keys for your resource.
From the left navigation on this article, select the operation that you want to perform (e.g., Evaluations and within that Create). On the right pane, select Try It.
In the REST API Try It pane, perform the following steps:
- In the Endpoint text box, enter the resource endpoint that you copied from the Azure portal.
- In the Ocp-Apim-Subscription-Key text box, enter the key that you copied from the Azure portal. If the call requires any more headers, add those with the appropriate values as well.
- Provide other parameters, headers, and message payload (body) as required for the operation.
- Select Run.
You will see the relevant response with an appropriate response code.
Samples
Visit the Cognitive Services REST API Sample Github repo for various samples on working with Cognitive Services using REST.
See also
- For more information, see Personalizer Documentation.
- To create an Azure Cognitive Service resource, see Get started with Azure Cognitive Service.
- To access REST specifications for previous versions of Personalizer API, see this Github repo.