Hi
I am using NimbusPost manifest APi. It is getting blank file downloaded.
dynamic json = JsonConvert.DeserializeObject(response.Content);
JavaScriptSerializer serializer = new JavaScriptSerializer();
Root root = serializer.Deserialize<Root>(json);
using (WebClient webClient = new WebClient())
{
byte[] bytes = webClient.DownloadData(root.data);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(root.data));
Response.BinaryWrite(bytes);
Response.Flush();
Response.End();
}
It is giving error NimbusAPi.shipping.root has some Invalid arguments. In response below data is returned
{"status":true,"data":"https:\/\/nimubs-assets.s3.amazonaws.com\/manifest\/20230116150815-95.pdf"}