Method: EasyPdfCloud::Workflow#create_job_from_file

Defined in:
lib/easy_pdf_cloud.rb

#create_job_from_file(filename, file_data) ⇒ Object



149
150
151
152
153
# File 'lib/easy_pdf_cloud.rb', line 149

def create_job_from_file(filename, file_data)
  create_job_url = "#{@workflow_url}/jobs?file=#{filename}"
  response = @access_token.put(create_job_url, {:body => file_data, :headers => {"Content-Type" => "application/pdf"}})
  return response.parsed["jobID"]
end