<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Gregg,<br>
<br>
You have to know the claimID and Passcode of the dorp-off that you
want to download.<br>
<br>
But then again the ZendTo database structure is pretty simple, so
given your code could access the DB, then it wouldn't be too hard to
write your own scripts that could do this.<br>
<br>
Hope that helps,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 23/05/2020 11:04, Gregg Douglas
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!8e87d0c70135831452152f992561e485e40bbbbfceebe7e988c3a702f15ad05a51ef62bad8f6e1cccb5f73389dde895e72a4183996abcb544ecc099c0023e2c6834ca3b7908993c3899670303ffeec75!@mx.jul.es">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>Sorry to hijack this thread, but my question is related.
Can you download all files or list all files with the same
Comment and or the same recipient?</div>
<div><br>
</div>
<div>Regards</div>
<div>Gregg</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, May 23, 2020 at 11:42
AM Jules via ZendTo <<a href="mailto:zendto@zend.to"
moz-do-not-send="true">zendto@zend.to</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> Sean,<br>
<br>
Before using any of the scripts, you need to create a user
that will be only used for driving the automation scripts of
ZendTo. Don't use a real user's account, create one just for
the purpose.<br>
Put that username in the 'automationUsers' setting in
preferences.php.<br>
<br>
For this example, let's set a few things:<br>
- The automation user is going to have the username "<tt>robot</tt>"
with a password of "<tt>machines</tt>".<br>
- The claimID and passcode of the drop-off will be "<tt>aaaClaimIDaaa</tt>"
and "<tt>bbbPasscodebbb</tt>".<br>
- The address of your ZendTo site will be "<tt><a
href="https://your-zendto-site.com/" target="_blank"
moz-do-not-send="true">https://your-zendto-site.com/</a></tt>".
The site address always goes at the very end of the command,
after all the other options.<br>
<br>
To see the command-line usage:<br>
<tt> /opt/zendto/bin/autopickup --help</tt><br>
<br>
Fetch information about the drop-off, without downloading
anything:<br>
<tt> /opt/zendto/bin/autopickup --username "robot"
--password "machines" --claimid "aaaClaimIDaaa" --passcode
"bbbPasscodebbb" --list --nofiles <a
href="https://your-zendto-site.com/" target="_blank"
moz-do-not-send="true">https://your-zendto-site.com/</a></tt><br>
<br>
Fetch all the files in the drop-off to the current
directory, verifying their checksums, and logging that they
were picked up by <a href="mailto:user@yourdomain.com"
target="_blank" moz-do-not-send="true">"user@yourdomain.com"</a>:<br>
<tt> /opt/zendto/bin/autopickup --username "robot"
--password "machines" --claimid "aaaClaimIDaaa" --passcode
"bbbPasscodebbb" --checksum --pickedupby <a
href="mailto:user@yourdomain.com" target="_blank"
moz-do-not-send="true">"user@yourdomain.com"</a></tt><tt>
<a href="https://your-zendto-site.com/" target="_blank"
moz-do-not-send="true">https://your-zendto-site.com/</a></tt><br>
<br>
Fetch all the files in the drop-off to the directory
"/var/tmp/downloads", not bothering with checksums or
logging who did it:<br>
<tt> /opt/zendto/bin/autopickup --username "robot"
--password "machines" --claimid "aaaClaimIDaaa" --passcode
"bbbPasscodebbb" --output "/var/tmp/downloads"</tt><tt> <a
href="https://your-zendto-site.com/" target="_blank"
moz-do-not-send="true">https://your-zendto-site.com/</a></tt><br>
<br>
The output of the "--list --nofiles" command above will give
you a unique "fileid" number for each of the files in the
drop-off. So let's download file number 123, verify its
checksum and save it to the file
"~/Downloads/my-picked-up-file":<br>
<tt> /opt/zendto/bin/autopickup --username "robot"
--password "machines" --claimid "aaaClaimIDaaa" --passcode
"bbbPasscodebbb" --file 123 --checksum --output
"~/Downloads/my-picked-up-file"</tt><tt> <a
href="https://your-zendto-site.com/" target="_blank"
moz-do-not-send="true">https://your-zendto-site.com/</a></tt><br>
<br>
If you are using a locally-signed SSL certificate on your
ZendTo server, you may need to add the option<br>
<tt> --insecure</tt><br>
to all of the above examples.<br>
<br>
To see the "curl" command it creates, which is what does all
the work, but not actually run anything, add the option<br>
<tt> --debug</tt><br>
to any of the above examples.<br>
<br>
Does that help?<br>
<br>
The point of me using "curl" is that all the script really
does is create all the parameters for an HTTP POST request
to your ZendTo server, and then pull out the JSON results
from the right header in the returned data. The "<tt>--debug</tt>"
option will help you understand what it's doing.<br>
<br>
Once you have played with it a bit, take a look how the
script works (90% is just parsing the command-line!) and you
will see how you could use a .Net http request to achieve
the same result with your own code running on a Windows
server.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div>On 22/05/2020 20:25, Cole, Sean via ZendTo wrote:<br>
</div>
<blockquote type="cite">
<p>Is anyone using the AutoPickUp Script? Any
documentation on the use of the script or examples.
Trying to move the files uploaded from the ZendTo server
to a Windows server.<br>
</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<div id="gmail-m_4997438740068483213Signature">
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>
<p class="MsoNormal"><b><span>Sean Cole</span></b></p>
<p class="MsoNormal"><span>Mgr. Network Services</span></p>
<p class="MsoNormal"><span
style="font-size:10pt;color:rgb(127,127,127)"></span> </p>
<p class="MsoNormal"><span><a
href="mailto:SeanCole@sunywcc.edu"
id="gmail-m_4997438740068483213NoLP"
target="_blank" moz-do-not-send="true"><font
color="#0563c1">SeanCole@sunywcc.edu</font></a>
</span></p>
<p class="MsoNormal"><span>914-606-6923</span></p>
</div>
</font></div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ZendTo mailing list
<a href="mailto:ZendTo@zend.to" target="_blank" moz-do-not-send="true">ZendTo@zend.to</a>
<a href="http://jul.es/mailman/listinfo/zendto" target="_blank" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
The current UK shipping forecast:
Trafalgar: Northerly or northeasterly 5 to 7, occasionally 4 at first. Rough.
Rain or showers at first. Good, occasionally moderate at first.
<a href="http://www.Zend.To" target="_blank" moz-do-not-send="true">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</div>
_______________________________________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to" target="_blank"
moz-do-not-send="true">ZendTo@zend.to</a><br>
<a href="http://jul.es/mailman/listinfo/zendto"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a><br>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
The current UK shipping forecast:
North Biscay: Westerly 4 to 6, becoming variable 3 or less. Rough,
occasionally moderate later. Showers. Good.
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>