doodstream.com - PHP Library
- Include the
RemoteUploadAPI
class in your PHP file:
phprequire_once('RemoteUploadAPI.php');
- Initialize the
RemoteUploadAPI
class with your DoodAPI key:
php$api_key = "your_api_key"; $remoteUploadAPI = new RemoteUploadAPI($api_key);
- Use the provided functions for various operations:
php$remoteUploadResponse = $remoteUploadAPI->remoteUpload("https://example.com/file.zip", null, "New File"); print_r($remoteUploadResponse);
php$remoteUploadListResponse = $remoteUploadAPI->remoteUploadList(); print_r($remoteUploadListResponse);
php$fileCode = "98zukoh5jqiw"; // Replace with the file code obtained from a previous upload $remoteUploadStatusResponse = $remoteUploadAPI->remoteUploadStatus($fileCode); print_r($remoteUploadStatusResponse);
php$remoteUploadSlotsResponse = $remoteUploadAPI->remoteUploadSlots(); print_r($remoteUploadSlotsResponse);
php$listFilesResponse = $remoteUploadAPI->listFiles(); print_r($listFilesResponse);
php$fileStatusResponse = $remoteUploadAPI->fileStatus($fileCode); print_r($fileStatusResponse);
php$fileInfoResponse = $remoteUploadAPI->fileInfo($fileCode); print_r($fileInfoResponse);
php$newTitle = "New Title"; $fileRenameResponse = $remoteUploadAPI->fileRename($fileCode, $newTitle); print_r($fileRenameResponse);
php$folderName = "MyFolder"; $createFolderResponse = $remoteUploadAPI->createFolder($folderName); print_r($createFolderResponse);
This project is licensed under the MIT License - see the LICENSE.md file for details.
markdownBu metni GitHub'daki `README.md` dosyanıza ekleyebilir ve gerekirse lisansınızı düzenleyebilirsiniz.