I am attempting to do a POC on Zoho. I am attempting to call the CreateDocument API and attempting to pass in the SaveUrl to our server. This what I have for the SaveUrlParams object
SaveUrlParams = new Dictionary<string, object> // The output parameters in which the document details will be pushed from Zoho
{
{ "content", "$content" }, // Document content will be pushed back in the form of bytes
{ "filename", "$filename" }, // Document name
{ "fileId", documentId },
{ "extension", "$format" }, // Specifies the format in which the document has been exported.
{ "sessionId", "$session_id" },
}
However I cannot seem to get any traffic coming to our save API when I click save in the interactive session. What should the signature for the Save API be on our end for this? For example, this does not seem to be being hit. I would like to verify that this is what it should be:
[HttpPost]
[Route("Save1")]
public void Save(IFormFile content, string filename, string fileId, string extension, string sessionId)
{
try
{
Console.WriteLine(content);
// Todo: Add code
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}