autorequest
This command is used to send a "request for a drop-off".
For the example commands, let's define a few things which you will change for your own use:
- The automation user is going to have the username "robot" with a password of "machines"
- The address of your ZendTo site will be "https://your-zendto-site.com/". The site address always goes at the very end of the command, after all the other options.
- The request will appear to have come from "James Smith <jsmith@example.com>". This is who will receive the drop-offs sent by the request's recipients.
- Recipients of the request will be "Jules <jules@zend.to>", "Jane Doe <jdoe@example.com>", "Bill Bloggs <billb@contoso.com>". These are the people who will be asked to upload their files to your ZendTo site.
Troubleshooting Options
If you are using a locally-signed SSL certificate on your ZendTo server, you may need to add the option
--insecure
to all of the example commands. The option tells curl to skip all the validity checks on the SSL certificate on your ZendTo server.
To see the curl command it creates, which is what does all the work, but not actually run anything, add the option
--debug
to any of the example commands. This is extremely useful if you are looking to re-implement the functionality of the script in another environment.
Examples
Due to the large number of options available for this command, these examples do not demonstrate all of them. The command-line usage will show you what the other options are.
- To see the command-line usage
- /opt/zendto/bin/autorequest --help
Request a drop-off (some files) from 1 person
- /opt/zendto/bin/autorequest --username 'robot' --password 'machines' --sendername 'James Smith' --senderemail 'jsmith@example.com' --senderorg 'Example Company Inc' --subject 'Request for files' --note 'Please send me the log files we discussed' --recipientname 'Jules' --recipientemail 'jules@zend.to' https://your-zendto-site.com/
Request a drop-off (some files) from 3 people
- /opt/zendto/bin/autorequest --username 'robot' --password 'machines' --sendername 'James Smith' --senderemail 'jsmith@example.com' --senderorg 'Example Company Inc' --subject 'Send me files' --note 'Please send me the log files we all discussed' --recipientname 'The Recipients' --recipientemail 'jules@zend.to,jdoe@example.com,billb@contoso.com' https://your-zendto-site.com/
Request a drop-off that will be automatically encrypted, without the person sending the files knowing the passphrase
- /opt/zendto/bin/autorequest --username 'robot' --password 'machines' --sendername 'James Smith' --senderemail 'jsmith@example.com' --senderorg 'Example Company Inc' --subject 'Request for files' --note 'Please send me the log files we discussed' --recipientname 'Jules' --recipientemail 'jules@zend.to' --passphrase 'SuperSecretSquirrel' https://your-zendto-site.com/