Exemplo n.º 1
0
        public Stream Download(IDropbox_Path path, long startpos = -1, long endpos = -1, int timeout = 2147483647)// unsupport multi
        {
            List <string> headers = new List <string>()
            {
                "Dropbox-API-Arg: " + JsonConvert.SerializeObject(path)
            };

            if (endpos > 0)
            {
                headers.Add("Range: bytes=" + startpos.ToString() + "-" + endpos.ToString());
            }
            return(POST_Request <Stream>("https://content.dropboxapi.com/2/files/download", null, headers.ToArray(), null));
        }
Exemplo n.º 2
0
 public IDropbox_Response_MetaData delete(IDropbox_Path data_request)
 {
     return(POST_Request <Dropbox_Response_MetaData>("https://api.dropboxapi.com/2/files/delete", data_request));
 }
Exemplo n.º 3
0
 public void permanently_delete(IDropbox_Path data_request)
 {
     POST_Request <IDropbox_Response_Error>("https://api.dropboxapi.com/2/files/permanently_delete", data_request);
 }
Exemplo n.º 4
0
 public IDropbox_Response_MetaData create_folder(IDropbox_Path data_request)
 {
     return(POST_Request <Dropbox_Response_MetaData>("https://api.dropboxapi.com/2/files/create_folder", data_request));
 }