Exemple #1
0
        /// <summary>
        /// To directly download the file of a FileAttachment
        /// <para>For more information see https://developers.podio.com/examples/files </para>
        /// </summary>
        /// <param name="fileAttachment"></param>
        /// <returns></returns>
        public FileResponse DownloadFile(FileAttachment fileAttachment)
        {
            var fileLink = fileAttachment.Link;

            //For URL's other than of root 'api.podio.com' , pass the url as an option
            var options = new Dictionary<string, dynamic>()
            {
                {"file_download", true},
                {"url", fileLink}
            };
            return _podio.Get<FileResponse>(url:null, options: options);
        }
Exemple #2
0
 /// <summary>
 ///     To directly download the file of a FileAttachment
 ///     <para>For more information see https://developers.podio.com/examples/files </para>
 /// </summary>
 /// <param name="fileAttachment"></param>
 /// <returns></returns>
 public async Task<FileResponse> DownloadFile(FileAttachment fileAttachment)
 {
     var fileLink = fileAttachment.Link;
     var options = new Dictionary<string, object>()
     {
         {"file_download", true}
     };
     return await _podio.Get<FileResponse>(fileLink, new Dictionary<string, string>(), true);
 }