Method: HTMLCSSToImage#url_to_image
- Defined in:
- lib/htmlcsstoimage.rb
#url_to_image(url, params = {}) ⇒ Object
Generate a screenshot of a URL
116 117 118 119 120 121 |
# File 'lib/htmlcsstoimage.rb', line 116 def url_to_image(url, params = {}) body = { url: url }.merge(params).to_json = { basic_auth: @auth, body: body, query: { includeId: true } } self.class.post("/v1/image", ) end |