Converting CSV files to Excel spreadsheets in Ruby is simple with the GoodGrids API. Jut use the snippet below.
require 'rest-client'
response = RestClient.post(
'https://api.goodgrids.com/api/convert/v1/csv-to-excel/3a6c0d9ac7c74d',
{
:user_image => File.new('to_convert.csv', 'rb')
}
)
Make sure to set URL to the API URL of the CSV-to-Excel conversion configuration you want to use.
Found a bug? Have a suggestion on how to improve this documentation? Please send us a note at support@goodgrids.com.