News for hackers. Stuff that matters.
Re:Command Line Faxing by tghw on Monday August 04, 2014 @12:37PM (#8132609)
Sorry, can't make any Ruby suggestions. I spend more time in the Python world where we have requests[0], which makes it all dead simple.

For example, multipart file uploads looks like:

    files = {'filename[]': open(filename, 'rb')}
    data = {'to': to, 'api_key': api_key, 'api_secret': api_secret}
    response = requests.post(url, data=data, files=files)
[0]http://docs.python-requests.org/en/latest/

There are no comments on this comment yet.