await using var originalStream = new MemoryStream(Encoding.UTF8.GetBytes(originalHtml));
await using var revisedStream = new MemoryStream(Encoding.UTF8.GetBytes(revisedHtml));
var request = new CompareDocumentOnlineRequest
{
Document = originalStream,
CompareData = new CompareData
{
Author = CompareAuthor,
FileReference = new FileReference(revisedStream),
ResultDocumentFormat = "html",
},
DestFileName = "compare-result.html",
};
var response = await wordsApi.CompareDocumentOnline(request);
@D3F7B4A8-2470-4331-AD7C-E0FBFADEF6B5
please share your client id, and also the code you shared doesn’t contain wordsApi initialization so I’m not sure how did you initialize the api client
@D3F7B4A8-2470-4331-AD7C-E0FBFADEF6B5
Please share client id, you tried that throws 400 instead of 401, to track that issue, as it might be something else we might miss