def convert(data, content_type, output_content_type, options = {})
      response = if URI === data
        self.class.get CONVERT, :headers => { 'Accept' => output_content_type,
                                              'X-Convert-Options' => option_string(options),
                                              'X-Source' => data.to_s }
      else
        self.class.post CONVERT, :body => data, :headers => { 'Content-Type' => content_type, 'Accept' => output_content_type, 'X-Convert-Options' => option_string(options) }
      end
      if response.code == 200
        return response
      else
        false
      end
    end
def convert(data, content_type, output_content_type, options = {})
      response = if URI === data
        self.class.get CONVERT, :headers => { 'Accept' => output_content_type,
                                              'X-Convert-Options' => option_string(options),
                                              'X-Source' => data.to_s }
      else
        self.class.post CONVERT, :body => data, :headers => { 'Content-Type' => content_type, 'Accept' => output_content_type, 'X-Convert-Options' => option_string(options) }
      end
      if response.code == 200
        return response
      else
        false
      end
    end
content_type and output_content_type must be valid mime types like 'application/pdf' or 'text/plain'
 if an URI instance is passed as data, the content will be fetched server side from said uri. content_type is
 ignored an should be nil in this case (convertible.io will use the content type from the remote resource).