| 3 | == Web service interface == |
| 4 | |
| 5 | Output files can be downloaded using web services of several forms: |
| 6 | {{{ |
| 7 | PROJECT_URL/get_output.php?cmd=result_file&auth_str=AUTH&result_name=NAME&file_num=N |
| 8 | PROJECT_URL/get_output.php?cmd=batch_files&auth_str=AUTH&batch_id=N |
| 9 | PROJECT_URL/get_output.php?cmd=workunit_file&auth_str=AUTH&wu_name=NAME&file_num=N |
| 10 | PROJECT_URL/get_output.php?cmd=workunit_files&auth_str=AUTH&wu_id=N |
| 11 | }}} |
| 12 | |
| 13 | The variants are: |
| 14 | |
| 15 | * '''result_file''': download the Nth output file of the given result. |
| 16 | * '''batch_file''': download all the output files of the given batch, as a zip archive. |
| 17 | * '''workunit_file''': download the Nth output file of the canonical instance of the given workunit. |
| 18 | * '''workunit_files''': download all the output files of the canonical instance of the given workunit, |
| 19 | as a zip archive. |
| 20 | |
| 21 | In each case, '''auth_str''' is the authenticator of the requesting user, |
| 22 | who must be the creator of the jobs involved. |
| 23 | |
| 24 | Notes: |
| 25 | |
| 26 | * These operations work only for jobs that are part of a batch. |
| 27 | * In case of error, the resulting file will have the work "error" in the first line. |
| 28 | |