(only required if using a buffer)Ĭb: Callback function to display the upload progress in the form of got's uploadProgress event. obj.contentType: The file's content type.obj.folder: The folder ID you want to upload to.obj.file: A buffer or the local path of your desired file.Obj: Object containing data for the upload: (not required) getFolder(folder)ĭuplicate of listFolder(folder). List contents (folders, files) of given folder id.įolder: The folder ID you want the contents listed of. deleteFile(file)įile: might consist of an Array or a string of comma-seperated file IDs. getFileInfo(file)įile: might consist of an Array or a string of comma-seperated file IDs. captcha_response: The response to the retrieved captcha image (only if there was a captcha_url returned with the download ticket).Ĭombines getDownloadTicket(file) and getDownloadLink(obj).Įither returns download link, or, if Captcha is necessary, returns response of getDownloadTicket(file). ![]() obj.ticket: The previously generated ticket.obj.file: The ID of your requested file.
0 Comments
Leave a Reply. |