### Example Installer Page Sequence Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/ressourcen/nsis/ressourcen/JREDyna - Readme.txt An example of how to integrate the CUSTOM_PAGE_JREINFO macro within the standard NSIS installer page sequence. ```nsis !insertmacro MUI_PAGE_DIRECTORY !insertmacro CUSTOM_PAGE_JREINFO !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH ``` -------------------------------- ### Example Section with JRE Installation Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/ressourcen/nsis/ressourcen/JREDyna - Readme.txt A sample NSIS section demonstrating the call to DownloadAndInstallJREIfNecessary before proceeding with application file installation. ```nsis Section "Installation of Application" SecAppFiles call DownloadAndInstallJREIfNecessary SetOutPath $INSTDIR MessageBox MB_OK "App would have been installed here" SectionEnd ``` -------------------------------- ### Call JRE Download and Install Function Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/ressourcen/nsis/ressourcen/JREDyna - Readme.txt Call the DownloadAndInstallJREIfNecessary function within an installation section to handle the JRE detection, download, and installation process. This function respects the IfSilent flag for silent operation. ```nsis call DownloadAndInstallJREIfNecessary ``` -------------------------------- ### JDownloader API Success Request and Response Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/API_Specs.txt Example of a successful API request to get account details and its corresponding JSON response. ```http POST /api.php HTTP/1.1 Host: yourhost.com Connection: close cmd=getAccountDetails&challenge=dfhsds73hf&user=testuser&pass=testpassword ----------------Response------------------ HTTP/1.1 200 OK Connection: close dfhsds73hf{ "type" : "Premium", "expireTime" : 130129841400, "traffic" : 36774829453, "autoRefill" : true, "concurrentDownloads" : 20, "maxChunks" : 10, "concurrentConnections" : 50, "resume" : true, "session" : "47dhd829degd9" }dfhsds73hf ``` -------------------------------- ### Successful Download Response Example Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/API_Specs.txt Example of a successful HTTP response after a download request. Includes headers like Content-Disposition, Content-Length, and Content-MD5, followed by file data. ```http HTTP/1.1 200 OK Content-Disposition: attachment; filename*=UTF-8'' Content-Length: 35678463 Content-MD5: 4004583eb2fcab58712467eab8fb7f89 Connection: close ...... ``` -------------------------------- ### Download Request Example Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/API_Specs.txt Example of a successful POST request to initiate a file download. Includes required parameters like command, challenge, user, password, and link ID. ```http POST /api.php HTTP/1.1 Host: yourhost.com Connection: close cmd=download&challenge=dfhsds73hf&user=testuser&pass=testpassword&linkid=http://yourhost.com/file/123432 ``` -------------------------------- ### Get Link Status Error Response Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/API_Specs.txt Example of an error response when requesting link status, indicating an invalid file ID. ```http ----------------Request------------------ POST /api.php HTTP/1.1 Host: yourhost.com Connection: close cmd=getLinkStatus&challenge=dfhsds73hf&user=testuser&pass=testpassword&links=http://yourhost.com/file/123432 http://yourhost.com/file/123433 http://yourhost.com/file/123434 ----------------Response------------------ HTTP/1.1 200 OK Connection: close dfhsds73hfERROR{ "code" : 13, "msg" : "Invalid File Id(s)" }dfhsds73hf ``` -------------------------------- ### Example Success Request for Link Status Source: https://github.com/mycodedoesnotcompile2/jdownloader_mirror/blob/main/svn_trunk/API_Specs.txt This example demonstrates a POST request to the JDownloader API to retrieve the status of multiple links. Ensure to replace placeholders with actual values. ```http POST /api.php HTTP/1.1 Host: yourhost.com Connection: close cmd=getLinkStatus&challenge=dfhsds73hf&user=testuser&pass=testpassword&links=http://yourhost.com/file/123432 http://yourhost.com/file/123433 http://yourhost.com/file/123434 ```