Skip to content

seyitahmettanriver/doodstream-php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

doodstream-php-api

doodstream.com - PHP Library

Usage

  1. Include the RemoteUploadAPI class in your PHP file:
php
require_once('RemoteUploadAPI.php');
  1. Initialize the RemoteUploadAPI class with your DoodAPI key:
php
$api_key = "your_api_key"; $remoteUploadAPI = new RemoteUploadAPI($api_key);
  1. Use the provided functions for various operations:

Remote Upload

php
$remoteUploadResponse = $remoteUploadAPI->remoteUpload("https://example.com/file.zip", null, "New File"); print_r($remoteUploadResponse);

Remote Upload List

php
$remoteUploadListResponse = $remoteUploadAPI->remoteUploadList(); print_r($remoteUploadListResponse);

Remote Upload Status

php
$fileCode = "98zukoh5jqiw"; // Replace with the file code obtained from a previous upload $remoteUploadStatusResponse = $remoteUploadAPI->remoteUploadStatus($fileCode); print_r($remoteUploadStatusResponse);

Remote Upload Slots

php
$remoteUploadSlotsResponse = $remoteUploadAPI->remoteUploadSlots(); print_r($remoteUploadSlotsResponse);

List Files

php
$listFilesResponse = $remoteUploadAPI->listFiles(); print_r($listFilesResponse);

File Status

php
$fileStatusResponse = $remoteUploadAPI->fileStatus($fileCode); print_r($fileStatusResponse);

File Info

php
$fileInfoResponse = $remoteUploadAPI->fileInfo($fileCode); print_r($fileInfoResponse);

File Rename

php
$newTitle = "New Title"; $fileRenameResponse = $remoteUploadAPI->fileRename($fileCode, $newTitle); print_r($fileRenameResponse);

Create Folder

php
$folderName = "MyFolder"; $createFolderResponse = $remoteUploadAPI->createFolder($folderName); print_r($createFolderResponse);

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

markdown
Bu metni GitHub'daki `README.md` dosyanıza ekleyebilir ve gerekirse lisansınızı düzenleyebilirsiniz.

About

doodstream.com - PHP Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages