// Initialize the client
var client = new IngestionClient(
new IngestionConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION")
);
// Call the API
var response = await client.TryTransformationAsync(
new TransformationTry
{
Type = Enum.Parse<TransformationType>("Code"),
Input = new TransformationInput(new TransformationCode { Code = "foo" }),
SampleRecord = new Dictionary<string, string> { { "bar", "baz" } },
}
);
// >LOG