Module: RenderMate

Includes:
HTTParty
Defined in:
lib/render_mate.rb,
lib/render_mate/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.render(api_key, url) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/render_mate.rb', line 8

def self.render(api_key, url)
  #url = 'http://67.23.162.117/test.html'
  #api_key = '0dccca18f10811cf570f4f69e97f736304e42e73d'
  #rmurl = 'http://localhost:3000/api/v1/render_page'
  #rmurl = 'http://rendermate.com/api/v1/render_page'

  options = { 
    :body => { 
      :api_key => api_key, 
      :url => url 
    } 
  }

  post("/api/v1/render_page", options).body
end