grabzit 3.3.7 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3c136226a84885fc45d9bc8d6a8b83a31b41062adbde3b934b3c239c1f20644
4
- data.tar.gz: c0fd94e24646a8844c5c2efd6754f73f6f16458f6b43602bea4003db661a76a5
3
+ metadata.gz: 2920fbc96f29ee4d9b7f7a1c83e7fe1d2ead558fc74b4baa5cd335f73cc9efd7
4
+ data.tar.gz: 8104b2962af11846171eced2a038a48d1f33f768d6684293f52a73103aaed85c
5
5
  SHA512:
6
- metadata.gz: 4e4eb7f6599111db650e7a724a9224fe734460b0002a5a2d064c2e7240f190694754bd9f4bb05a9b17db07e143c0edabbcd3435a1eba28802ce2f8b033eb6670
7
- data.tar.gz: c68dabe9397106e08029b338412026ea2ef5581a36159940816c78924608b6ffd838172b5308196422892ac02d8f138db5ea06bb01553c3618a9fe875fbb3080
6
+ metadata.gz: 3fd0f39c45172d5f685e1c76b9664d0f4b1e5de08c37a0d3c565a64eaf85712c4a254506b1468fb64cbb45b7135a507f89420f1746f89dcd5914810fb6427744
7
+ data.tar.gz: 1afc1b4fcbd2e0008d58ce9b6572a48981ac6febd4c2434b4abca92561c4b4536dbf9c4408a75ec5c10cccecbb48ccb197e9484b9de27ee06ec1a2b172f46488
@@ -35,19 +35,17 @@ module GrabzIt
35
35
  # @see http://grabz.it/api/ruby/ GrabzIt Ruby API
36
36
  class Client
37
37
 
38
- WebServicesBaseURLGet = "://api.grabz.it/services/"
39
- private_constant :WebServicesBaseURLGet
40
- WebServicesBaseURLPost = "://grabz.it/services/"
41
- private_constant :WebServicesBaseURLPost
42
- TakePicture = "takepicture.ashx"
38
+ WebServicesBaseURL = "://api.grabz.it/services/"
39
+ private_constant :WebServicesBaseURL
40
+ TakePicture = "takepicture"
43
41
  private_constant :TakePicture
44
- TakeTable = "taketable.ashx"
42
+ TakeTable = "taketable"
45
43
  private_constant :TakeTable
46
- TakePDF = "takepdf.ashx"
44
+ TakePDF = "takepdf"
47
45
  private_constant :TakePDF
48
- TakeDOCX = "takedocx.ashx"
46
+ TakeDOCX = "takedocx"
49
47
  private_constant :TakeDOCX
50
- TakeHTML = "takehtml.ashx"
48
+ TakeHTML = "takehtml"
51
49
  private_constant :TakeHTML
52
50
  TrueString = "True"
53
51
  private_constant :TrueString
@@ -75,7 +73,7 @@ module GrabzIt
75
73
  options = AnimationOptions.new()
76
74
  end
77
75
 
78
- @request = Request.new(@protocol + WebServicesBaseURLGet + "takeanimation.ashx", false, options, url)
76
+ @request = Request.new(@protocol + WebServicesBaseURL + "takeanimation", false, options, url)
79
77
  return nil
80
78
  end
81
79
 
@@ -90,7 +88,7 @@ module GrabzIt
90
88
  options = ImageOptions.new()
91
89
  end
92
90
 
93
- @request = Request.new(@protocol + WebServicesBaseURLGet + TakePicture, false, options, url)
91
+ @request = Request.new(@protocol + WebServicesBaseURL + TakePicture, false, options, url)
94
92
  return nil
95
93
  end
96
94
 
@@ -105,7 +103,7 @@ module GrabzIt
105
103
  options = ImageOptions.new()
106
104
  end
107
105
 
108
- @request = Request.new(@protocol + WebServicesBaseURLPost + TakePicture, true, options, html)
106
+ @request = Request.new(@protocol + WebServicesBaseURL + TakePicture, true, options, html)
109
107
  return nil
110
108
  end
111
109
 
@@ -129,7 +127,7 @@ module GrabzIt
129
127
  options = HTMLOptions.new()
130
128
  end
131
129
 
132
- @request = Request.new(@protocol + WebServicesBaseURLGet + TakeHTML, false, options, url)
130
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeHTML, false, options, url)
133
131
  return nil
134
132
  end
135
133
 
@@ -144,7 +142,7 @@ module GrabzIt
144
142
  options = HTMLOptions.new()
145
143
  end
146
144
 
147
- @request = Request.new(@protocol + WebServicesBaseURLPost + TakeHTML, true, options, html)
145
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeHTML, true, options, html)
148
146
  return nil
149
147
  end
150
148
 
@@ -168,7 +166,7 @@ module GrabzIt
168
166
  options = TableOptions.new()
169
167
  end
170
168
 
171
- @request = Request.new(@protocol + WebServicesBaseURLGet + TakeTable, false, options, url)
169
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeTable, false, options, url)
172
170
  return nil
173
171
  end
174
172
 
@@ -183,7 +181,7 @@ module GrabzIt
183
181
  options = TableOptions.new()
184
182
  end
185
183
 
186
- @request = Request.new(@protocol + WebServicesBaseURLPost + TakeTable, true, options, html)
184
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeTable, true, options, html)
187
185
  return nil
188
186
  end
189
187
 
@@ -207,7 +205,7 @@ module GrabzIt
207
205
  options = PDFOptions.new()
208
206
  end
209
207
 
210
- @request = Request.new(@protocol + WebServicesBaseURLGet + TakePDF, false, options, url)
208
+ @request = Request.new(@protocol + WebServicesBaseURL + TakePDF, false, options, url)
211
209
  return nil
212
210
  end
213
211
 
@@ -222,7 +220,7 @@ module GrabzIt
222
220
  options = PDFOptions.new()
223
221
  end
224
222
 
225
- @request = Request.new(@protocol + WebServicesBaseURLPost + TakePDF, true, options, html)
223
+ @request = Request.new(@protocol + WebServicesBaseURL + TakePDF, true, options, html)
226
224
  return nil
227
225
  end
228
226
 
@@ -246,7 +244,7 @@ module GrabzIt
246
244
  options = DOCXOptions.new()
247
245
  end
248
246
 
249
- @request = Request.new(@protocol + WebServicesBaseURLGet + TakeDOCX, false, options, url)
247
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeDOCX, false, options, url)
250
248
  return nil
251
249
  end
252
250
 
@@ -261,7 +259,7 @@ module GrabzIt
261
259
  options = DOCXOptions.new()
262
260
  end
263
261
 
264
- @request = Request.new(@protocol + WebServicesBaseURLPost + TakeDOCX, true, options, html)
262
+ @request = Request.new(@protocol + WebServicesBaseURL + TakeDOCX, true, options, html)
265
263
  return nil
266
264
  end
267
265
 
@@ -366,7 +364,7 @@ module GrabzIt
366
364
  return nil
367
365
  end
368
366
 
369
- result = get(@protocol + WebServicesBaseURLGet + "getstatus.ashx?id=" + GrabzIt::Utility.nil_check(id))
367
+ result = get(@protocol + WebServicesBaseURL + "getstatus?id=" + GrabzIt::Utility.nil_check(id))
370
368
 
371
369
  doc = REXML::Document.new(result)
372
370
 
@@ -388,7 +386,7 @@ module GrabzIt
388
386
  return nil
389
387
  end
390
388
 
391
- return get(@protocol + WebServicesBaseURLGet + "getfile.ashx?id=" + GrabzIt::Utility.nil_check(id))
389
+ return get(@protocol + WebServicesBaseURL + "getfile?id=" + GrabzIt::Utility.nil_check(id))
392
390
  end
393
391
 
394
392
  # Get all the cookies that GrabzIt is using for a particular domain. This may include your user set cookies as well
@@ -406,7 +404,7 @@ module GrabzIt
406
404
  qs.concat("&sig=")
407
405
  qs.concat(sig)
408
406
 
409
- result = get(@protocol + WebServicesBaseURLGet + "getcookies.ashx?" + qs)
407
+ result = get(@protocol + WebServicesBaseURL + "getcookies?" + qs)
410
408
 
411
409
  doc = REXML::Document.new(result)
412
410
 
@@ -461,7 +459,7 @@ module GrabzIt
461
459
  qs.concat("&sig=")
462
460
  qs.concat(sig)
463
461
 
464
- return (get_result_value(get(@protocol + WebServicesBaseURLGet + "setcookie.ashx?" + qs), "Result") == TrueString)
462
+ return (get_result_value(get(@protocol + WebServicesBaseURL + "setcookie?" + qs), "Result") == TrueString)
465
463
  end
466
464
 
467
465
  # Delete a custom cookie or block a global cookie from being used
@@ -483,7 +481,7 @@ module GrabzIt
483
481
  qs.concat("&delete=1&sig=")
484
482
  qs.concat(sig)
485
483
 
486
- return (get_result_value(get(@protocol + WebServicesBaseURLGet + "setcookie.ashx?" + qs), "Result") == TrueString)
484
+ return (get_result_value(get(@protocol + WebServicesBaseURL + "setcookie?" + qs), "Result") == TrueString)
487
485
  end
488
486
 
489
487
  # Get your uploaded custom watermark
@@ -523,7 +521,7 @@ module GrabzIt
523
521
 
524
522
  boundary = '--------------------------'+Time.now.to_f.to_s
525
523
 
526
- url = @protocol + "://grabz.it/services/addwatermark.ashx"
524
+ url = @protocol + "://api.grabz.it/services/addwatermark"
527
525
  uri = URI.parse(url)
528
526
 
529
527
  file = File.open(path, "rb")
@@ -583,7 +581,7 @@ module GrabzIt
583
581
  qs.concat("&sig=")
584
582
  qs.concat(sig)
585
583
 
586
- return (get_result_value(get(@protocol + WebServicesBaseURLGet + "deletewatermark.ashx?" + qs), "Result") == TrueString)
584
+ return (get_result_value(get(@protocol + WebServicesBaseURL + "deletewatermark?" + qs), "Result") == TrueString)
587
585
  end
588
586
 
589
587
  # This method sets if requests to GrabzIt's API should use SSL or not
@@ -667,7 +665,7 @@ module GrabzIt
667
665
  qs.concat("&sig=")
668
666
  qs.concat(sig)
669
667
 
670
- result = get(@protocol + WebServicesBaseURLGet + "getwatermarks.ashx?" + qs)
668
+ result = get(@protocol + WebServicesBaseURL + "getwatermarks?" + qs)
671
669
 
672
670
  doc = REXML::Document.new(result)
673
671
 
@@ -707,7 +705,7 @@ module GrabzIt
707
705
  if statusCode == 403
708
706
  raise GrabzItException.new(response.body, GrabzItException::NETWORK_DDOS_ATTACK)
709
707
  elsif statusCode >= 400
710
- raise GrabzItException.new("A network error occured when connecting to the GrabzIt servers.", GrabzItException::NETWORK_GENERAL_ERROR)
708
+ raise GrabzItException.new("A network error occurred when connecting to GrabzIt.", GrabzItException::NETWORK_GENERAL_ERROR)
711
709
  end
712
710
  end
713
711
 
@@ -727,7 +725,7 @@ module GrabzIt
727
725
 
728
726
  private
729
727
  def encode(text)
730
- return Digest::MD5.hexdigest(text.encode('ascii', {:invalid => :replace, :undef => :replace, :replace => '?'}))
728
+ return Digest::MD5.hexdigest(text.encode('ascii', **{:invalid => :replace, :undef => :replace, :replace => '?'}))
731
729
  end
732
730
 
733
731
  private
@@ -32,6 +32,7 @@ module GrabzIt
32
32
  @noCookieNotifications = false
33
33
  @address = nil
34
34
  @password = nil
35
+ @clickElement = nil
35
36
  end
36
37
 
37
38
  # @return [Boolean] true if the background images of the web page should be included in the DOCX
@@ -296,6 +297,19 @@ module GrabzIt
296
297
  @waitForElement = value
297
298
  end
298
299
 
300
+ # @return [String] get the CSS selector of the HTML element in the web page that must clicked before the capture is performed
301
+ def clickElement
302
+ @clickElement
303
+ end
304
+
305
+ # Set the CSS selector of the HTML element in the web page that must clicked before the capture is performed
306
+ #
307
+ # @param value [String] the element to click
308
+ # @return [void]
309
+ def clickElement=(value)
310
+ @clickElement = value
311
+ end
312
+
299
313
  # @return [String] get the ID of a capture that should be merged at the beginning of the new DOCX document
300
314
  def mergeId
301
315
  @mergeId
@@ -387,7 +401,7 @@ module GrabzIt
387
401
  items.push(GrabzIt::Utility.nil_check(url))
388
402
  end
389
403
 
390
- items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.b_to_str(@includeImages),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@password))
404
+ items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.b_to_str(@includeImages),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@password),GrabzIt::Utility.nil_check(@clickElement))
391
405
  return items.join("|")
392
406
  end
393
407
 
@@ -421,6 +435,7 @@ module GrabzIt
421
435
  params['address'] = GrabzIt::Utility.nil_check(@address)
422
436
  params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
423
437
  params['password'] = GrabzIt::Utility.nil_check(@password)
438
+ params['click'] = GrabzIt::Utility.nil_check(@clickElement)
424
439
 
425
440
  return params;
426
441
  end
@@ -72,6 +72,10 @@ module GrabzIt
72
72
  PARAMETER_INVALID_PROXY = 173
73
73
  PARAMETER_INVALID_NO_NOTIFY = 174
74
74
  PARAMETER_INVALID_HD = 176
75
+ PARAMETER_INVALID_MEDIA_TYPE = 177
76
+ PARAMETER_INVALID_PASSWORD = 178
77
+ PARAMETER_INVALID_MERGE = 179
78
+ PARAMETER_INVALID_CLICK_VALUE = 180
75
79
  NETWORK_SERVER_OFFLINE = 200
76
80
  NETWORK_GENERAL_ERROR = 201
77
81
  NETWORK_DDOS_ATTACK = 202
@@ -23,6 +23,7 @@ module GrabzIt
23
23
  @noCookieNotifications = false
24
24
  @address = nil
25
25
  @hd = false
26
+ @clickElement = nil
26
27
  end
27
28
 
28
29
  # @return [Integer] the width of the browser in pixels
@@ -140,6 +141,19 @@ module GrabzIt
140
141
  # @return [void]
141
142
  def waitForElement=(value)
142
143
  @waitForElement = value
144
+ end
145
+
146
+ # @return [String] get the CSS selector of the HTML element in the web page that must clicked before the capture is performed
147
+ def clickElement
148
+ @clickElement
149
+ end
150
+
151
+ # Set the CSS selector of the HTML element in the web page that must clicked before the capture is performed
152
+ #
153
+ # @param value [String] the element to click
154
+ # @return [void]
155
+ def clickElement=(value)
156
+ @clickElement = value
143
157
  end
144
158
 
145
159
  # @return [Integer] get which user agent type should be used
@@ -263,7 +277,7 @@ module GrabzIt
263
277
  items.push(GrabzIt::Utility.nil_check(url))
264
278
  end
265
279
 
266
- items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.b_to_str(@transparent),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.b_to_str(@hd))
280
+ items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@format),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_int_check(@browserHeight),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.b_to_str(@transparent),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.b_to_str(@hd),GrabzIt::Utility.nil_check(@clickElement))
267
281
 
268
282
  return items.join("|")
269
283
  end
@@ -289,6 +303,7 @@ module GrabzIt
289
303
  params['address'] = GrabzIt::Utility.nil_check(@address)
290
304
  params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
291
305
  params['hd'] = GrabzIt::Utility.b_to_str(@hd)
306
+ params['click'] = GrabzIt::Utility.nil_check(@clickElement)
292
307
 
293
308
  return params
294
309
  end
@@ -35,6 +35,7 @@ module GrabzIt
35
35
  @address = nil
36
36
  @cssMediaType = nil
37
37
  @password = nil
38
+ @clickElement = nil
38
39
  end
39
40
 
40
41
  # @return [Boolean] true if the background of the web page should be included in the PDF
@@ -338,6 +339,19 @@ module GrabzIt
338
339
  def waitForElement=(value)
339
340
  @waitForElement = value
340
341
  end
342
+
343
+ # @return [String] get the CSS selector of the HTML element in the web page that must clicked before the capture is performed
344
+ def clickElement
345
+ @clickElement
346
+ end
347
+
348
+ # Set the CSS selector of the HTML element in the web page that must clicked before the capture is performed
349
+ #
350
+ # @param value [String] the element to click
351
+ # @return [void]
352
+ def clickElement=(value)
353
+ @clickElement = value
354
+ end
341
355
 
342
356
  # @return [String] get the ID of a capture that should be merged at the beginning of the new PDF document
343
357
  def mergeId
@@ -429,7 +443,7 @@ module GrabzIt
429
443
  items.push(GrabzIt::Utility.nil_check(url))
430
444
  end
431
445
 
432
- items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.b_to_str(@includeOutline),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_check(@coverURL),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@cssMediaType),GrabzIt::Utility.nil_check(@password))
446
+ items.push(GrabzIt::Utility.nil_check(callBackURL),GrabzIt::Utility.nil_check(@customId),GrabzIt::Utility.b_to_str(@includeBackground),@pagesize ,@orientation,GrabzIt::Utility.nil_check(@customWaterMarkId),GrabzIt::Utility.b_to_str(@includeLinks),GrabzIt::Utility.b_to_str(@includeOutline),GrabzIt::Utility.nil_check(@title),GrabzIt::Utility.nil_check(@coverURL),GrabzIt::Utility.nil_int_check(@marginTop),GrabzIt::Utility.nil_int_check(@marginLeft),GrabzIt::Utility.nil_int_check(@marginBottom),GrabzIt::Utility.nil_int_check(@marginRight),GrabzIt::Utility.nil_int_check(@delay),GrabzIt::Utility.nil_int_check(@requestAs),GrabzIt::Utility.nil_check(@country),GrabzIt::Utility.nil_int_check(@quality),GrabzIt::Utility.nil_check(@templateId),GrabzIt::Utility.nil_check(@hideElement),GrabzIt::Utility.nil_check(@targetElement),GrabzIt::Utility.nil_check(@exportURL),GrabzIt::Utility.nil_check(@waitForElement),GrabzIt::Utility.nil_check(@encryptionKey),GrabzIt::Utility.b_to_str(@noAds),GrabzIt::Utility.nil_check(@post),GrabzIt::Utility.nil_int_check(@browserWidth),GrabzIt::Utility.nil_int_check(@height),GrabzIt::Utility.nil_int_check(@width),GrabzIt::Utility.nil_check(@templateVariables),GrabzIt::Utility.nil_check(@proxy),GrabzIt::Utility.nil_check(@mergeId),GrabzIt::Utility.nil_check(@address),GrabzIt::Utility.b_to_str(@noCookieNotifications),GrabzIt::Utility.nil_check(@cssMediaType),GrabzIt::Utility.nil_check(@password),GrabzIt::Utility.nil_check(@clickElement))
433
447
 
434
448
  return items.join("|")
435
449
  end
@@ -467,7 +481,8 @@ module GrabzIt
467
481
  params['nonotify'] = GrabzIt::Utility.b_to_str(@noCookieNotifications)
468
482
  params['media'] = GrabzIt::Utility.nil_check(@cssMediaType)
469
483
  params['password'] = GrabzIt::Utility.nil_check(@password)
470
-
484
+ params['click'] = GrabzIt::Utility.nil_check(@clickElement)
485
+
471
486
  return params;
472
487
  end
473
488
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grabzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.7
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GrabzIt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2021-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -57,7 +57,7 @@ homepage: https://grabz.it/api/ruby
57
57
  licenses:
58
58
  - MIT
59
59
  metadata: {}
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.0.3
76
- signing_key:
75
+ rubygems_version: 3.1.6
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: GrabzIt Ruby Client
79
79
  test_files: []