3 ms·
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
by tghw 12y ago
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/ http://docs.python-requests.org/en/latest/