X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/652b90a6551e4c70d38189dcf16284a04399918d..0ebffccac2f5632b3ad31b801519cc0c186f3006:/script.php?lang=bash
diff --git a/script.php b/script.php
index 3b6b234..90b2c11 100644
--- a/script.php
+++ b/script.php
@@ -14,7 +14,7 @@
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see
'; - echo t('This interface permits to script your uploads and downloads.') . - ' ' . t('The instructions above show how to query this interface.'); - echo '
'; - - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "get_version=1 (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is the version number.') . '
'; - echo t('Example') . ": " . $web_root . "script.php?get_version=1 "; - echo '
'; - - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "get_capacity=1 (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is the server capacity (in Bytes).') . '
'; - echo t('Example') . ": " . $web_root . "script.php?get_capacity=1 "; - echo '
'; - - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "get_maximal_upload_size=1 (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line returns size (in MB).') . '
'; - echo t('Example') . ": " . $web_root . "script.php?get_maximal_upload_size=1 "; - echo '
'; - - echo '';
- echo t('Send a POST query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "file=C:\\your\\file\\path (" . t('Required') . ")
";
- echo "time=[minute|hour|day|week|month|year|none] (" . t('Optional') . ', '. t('default: none') . ")
";
- echo "password=your_password (" . t('Optional') . ")
";
- echo "one_time_download=1 (" . t('Optional') . ")
";
- echo "upload_password=your_upload_password (" . t('Optional') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is the download reference and the second line the delete code.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "h=your_download_reference (" . t('Required') . ")
";
- echo '
';
- echo t('If a password has been set, send a POST request with it.');
- echo '
';
- echo t('Parameters') . ':
';
- echo "password=your_password (" . t('Optional') . ")
";
- echo '
'; - echo t('Example') . ": " . $web_root . "script.php?h=30ngy0hsDcpfrF8zR7x9iU "; - echo '
'; - - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "h=your_download_reference (" . t('Required') . ")
";
- echo "d=yout_delete_code (" . t('Required') . ")
";
- echo '
' . t('This will return "Ok" if succeeded, "Error" otherwhise.') . '
'; - echo t('Example') . ": " . $web_root . "script.php?h=30ngy0hsDcpfrF8zR7x9iU&d=0d210a952 "; - echo '
'; - - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "lang=[";
- foreach ($script_langages as $lang => $name)
- echo $lang;
- echo "] (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content of the code.') . '
';
- echo t('Example') . ":
";
- foreach ($script_langages as $lang => $name)
- echo "$name: " . $web_root . "script.php?lang=$lang ";
- echo '
'; - echo t('The goal is to permit to transfert big file, chunk by chunk.') . ' '; - echo t('Chunks of data must be sent in order.'); - echo '
'; - echo '';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?init_async
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "filename=file_name.ext (" . t('Required') . ")
";
- echo "type=MIME_TYPE (" . t('Optional') . ")
";
- echo "time=[minute|hour|day|week|month|year|none] (" . t('Optional') . ', '. t('default: none') . ")
";
- echo "password=your_password (" . t('Optional') . ")
";
- echo "one_time_download=1 (" . t('Optional') . ")
";
- echo "upload_password=your_upload_password (" . t('Optional') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is the asynchronous transfert reference and the second line the code to use in the next operation.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?push_async
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "ref=async_reference (" . t('Required') . ")
";
- echo "data=data_chunk (" . t('Required') . ")
";
- echo "code=last_provided_code (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('Returns the next code to use.') . '
';
- echo t('Send a GET query to') . ': ' . $web_root . 'script.php?end_async
';
- echo '
';
- echo t('Parameters') . ':
';
- echo "ref=async_reference (" . t('Required') . ")
";
- echo "code=last_provided_code (" . t('Required') . ")
";
- echo '
' . t('This will return brut text content.') . ' ' .
- t('First line is the download reference and the second line the delete code.') . '
This interface permits to script your uploads and downloads.
+See source code of this interface to get available calls :)
+You may download a preconfigured Bash Script to easily send to and get files from the API via command line.
+