I use this shell script to upload files. Downloading is a different story, since you'd need to get a list of files and then download them. I don't have easy code for that.
---- snip ----
#!/bin/sh
APIKEY="YOUR API KEY HERE"
dropname=$(curl -F api_key=$APIKEY -F version=2.0 -F admin_email=<YOUR EMAIL> http://api.drop.io/drops | perl -lne 'print $1 if(/<name>(.*?)<\/name>/);')
echo "Uploading to http://drop.io/$dropname/"
for file in $*; do
curl -F api_key=$APIKEY -F version=2.0 -F drop_name=$dropname -F file=@$file http://assets.drop.io/upload
done
---- snip ----
/jgt
--
http://tamboli.cx/, PGP key ID 2BC5D9A9
A critical bit of info required is: Windows or *nix?
I suggest that if you don't have skills to write an application,
that you offer some form of reciprocation to those who have taken
the incredible amount of time to learn their craft, and further
have invested time to understand the Drop.IO API. Examples which
might motivate developers include cash, food, movie tickets, or
purchasing credit on some website like Amazon or even Drop.io
itself.
To All,
I need to be able to upload and download files to a drop.io account from a batch file or command line. Daily, I will upload one set of filenames that do not change. Daily, I will download one set of filenames that do not change. Although the names do not change on a daily basis, there is always the prospect of something changing in the future, so I would not hard code the filenames.
Anyone interested in doing this project for me? For a fee of course. If so please reply and I'll send you my main email address and we can talk. Thanks.
I have been a mainframe programmer for 40 years. Over those years, the mainframe contingent went from unreadable code to readable code. With lots of peer pressure to write code that was easy to follow. "Structured programming" was the buzz word. These web programming languages are just so cryptic to me. Hard to follow. And so many choices of languages. So I'm looking for something that is heavily commented so that I
Sorry, I missed your post as yahoo sent it to the spam folder. I just added dropio-api to my address book, so hopefully I won't miss anymore. Why it would pass Jay to my inbox and you to spam who knows.
> > I need to be able to upload and download files to a
> > drop.io account from a batch file or command line.
> > I assume this is a simple API task if you
> > are familiar with any of the supported
> > languages. I am not.
> A critical bit of info required is: Windows or *nix?
Windows. XP, Vista, and 7.
> I suggest that if you don't have skills to write an
> application, that you offer some form of
> reciprocation to those who have taken
> the incredible amount of time to learn their craft
Sounds fair to me. I am more than willing to pay a reasonable fee to get this project done. Anyone with said interest, please contact me and let's work out the details. This will be an easy project for someone who knows what they're doing. The filenames, both directions, are always known.
thanks