Area: Optimizely Service API
Applies to versions: 1 and higher

Content operations

Recommended reading 

This topic describes how to work with content RESTful operations, identity mapping and content identifiers when using the Optimizely Service API for integrations.

See Installation and configuration, Bulk operations, and CMS content import service for more information.

Example models

public class IdentityMapping
    public string IntegrationId { get; set; }
    public DateTime? Modified { get; set; }
    public string ProviderName { get; set; }

Get identities 

This method gets all the content created integration identifiers with the provider name specified. If none is specified, default is the default parameter.


JSON response type

C# code sample

var client = new HttpClient()
    BaseAddress = new Uri(ConfigurationManager.AppSettings["integrationUrl"])
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.AccessToken);		
var result = client.GetAsync("/episerverapi/commerce/identities/{providerName=default}").Result.Content.ReadAsStringAsync().Result

XML response type

Related topics

Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 20, 2016

Recommended reading