Tools to Capture and Convert the Web

Client with PerlPerl API

Description

This class handles all communication with the GrabzIt screenshot web services.

Public Methods

GetResult($id)

This method returns the screenshot itself. If nothing is returned then something has gone wrong or the screenshot is not ready yet.

Parameters

  • id - the unique identifier of the screenshot
    • Required

Return Value

The capture


URLToAnimation($url, $options)

Specifiy the URL of the online video that should be converted into a animated GIF.

Parameters

  • url - the URL of the online video to convert into an animated GIF.
    • Required
    • Accepts Vimeo and YouTube video URL's
      • Warning animating Vimeo and YouTube videos depends on a third party and so may not provide consistent results.
  • options - a instance of the GrabzItAnimationOptions class that defines any special options to use when creating the animated GIF.

Return Value

void

GrabzItAnimationOptions

The class represents all of the options available when creating an animated GIF.

Public Properties

  • customId($value) - custom identifier that you can pass through to the animated GIF web service. This will be returned with the callback URL you have specified.
    • Default: empty
  • width($value) - the width of the resulting animated GIF in pixels.
    • Default: 180px
    • Maximum: Maximum width for package
    • Auto-size: -1 (passing -1 means that the width of the animated GIF is scaled in relation to its height, if the width is being auto-sized the height cannot)
  • height($value) - the height of the resulting animated GIF in pixels.
    • Default: 120px
    • Maximum: Maximum height for package
    • Auto-size: -1 (passing -1 means that the height of the animated GIF is scaled in relation to its width, if the height is being auto-sized the width cannot)
  • start($value) - the starting position of the video that should be converted into a animated GIF.
    • Default: 0 seconds
  • duration($value) - the length in seconds of the video that should be converted into a animated GIF.
    • Default: maximum length for package
  • speed($value) - the speed of the animated GIF.
    • Default: 1
    • Minimum: 0.2
    • Maximum: 10
  • framesPerSecond($value) - the number of frames per second that should be captured from the video.
    • Default: 10
    • Minimum: 0.2
    • Maximum: 60
  • repeat($value) - number of times to loop the animated GIF.
    • Default: 0
    • Loop Continuously: 0
  • reverse($value) - if 1 the frames of the animated GIF are reversed
    • Default: 0
  • customWaterMarkId($value) - add custom watermark to the animated GIF
    • Default: empty
  • quality($value) - the quality of the returned image, which has a default compression of 85%.
    • Reducing the quality will reduce the filesize and reduce download times.
    • Default: -1
    • Minimum: -1
    • Maximum: 100
  • country($value) - the country the animated GIF should be taken from.
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: The current fastest location
    • Options: "SG", "UK", "US"
  • exportURL($value) - the export URL that specifies where the capture should be exported too
    • Default: empty
  • encryptionKey($value) - if a base 64 encoded AES encryption key is specified your capture is encrypted when it is created. As Perl has poor native encryption facilities you need to follow these instructions to decrypt an encrypted capture.
    • Default: empty
  • proxy($value) - the HTTP proxy details the browser software should use to use to create this capture
    • Default: empty

URLToImage($url, $options)

Specifies the URL that should be converted into a image screenshot.

Parameters

  • url - the URL that the screenshot should be made of
    • Required
  • options - a instance of the GrabzItImageOptions class that defines any special options to use when creating the screenshot.

Return Value

void

HTMLToImage($html, $options)

Specifies the HTML that should be converted into a image.

Parameters

  • html - the HTML to convert into a image
    • Required
  • options - a instance of the GrabzItImageOptions class that defines any special options to use when creating an image.

Return Value

void

FileToImage($path, $options)

Specifies a HTML file that should be converted into a image.

Parameters

  • path - the file path of a HTML file to convert into a image
    • Required
  • options - a instance of the GrabzItImageOptions class that defines any special options to use when creating an image.

Return Value

void

GrabzItImageOptions

The class represents all of the options available when creating image captures.

Public Properties

  • customId($value) - custom identifier that you can pass through to the screenshot webservice. This will be returned with the callback URL you have specified.
    • Default: empty
  • browserWidth($value) - the width of the browser in pixels
    • Default: 1024
    • Maximum: 10000
  • browserHeight($value) - the height of the browser in pixels
    • Default: 768
    • Maximum: 10000
    • Full Length: -1 (passing -1 means that a sceenshot of the whole web page is taken)
  • width($value) - the width of the resulting thumbnail in pixels
    • Default: The highest ratio of the browser width possible that fits within the maximum width for the users package
    • Maximum: Maximum width for package
    • Full Width: -1 (passing -1 means that the width of the thumbnail is not reduced)
  • height($value) - the height of the resulting thumbnail in pixels
    • Default: The highest ratio of the browser height possible that fits within the maximum height for the users package
    • Maximum: Maximum height for package
    • Full Height: -1 (passing -1 means that the height of the thumbnail is not reduced)
  • format($value) - the format the screenshot should be in.
    • Default: "jpg"
    • Options: "bmp8", "bmp16", "bmp24", "bmp", "tiff", "jpg", "png"
  • delay($value) - the number of milliseconds to wait before taking the screenshot
    • Default: 0
    • Maximum: 30000
  • targetElement($value) - the id or class CSS selector of the only HTML element on the target web page that is to be turned into a screenshot, all other parts of the web page are ignored. If there are multiple matching HTML elements the first one is chosen
    • Default: empty
  • hideElement($value) - the id or class CSS selectors of the one or more HTML elements in the web page to hide, to specify multiple HTML elements to hide seperate each selector with a comma
    • Default: empty
  • waitForElement($value) - the id or class CSS selectors of the HTML element in the web page that must be visible before the capture is performed
    • Default: empty
  • requestAs($value) - the type of user agent you wish to use
    • Default: 0
    • Options:
      • 0 = indicates the user agent of a standard browser should be used
      • 1 = indicates the user agent of a mobile browser should be used
      • 2 = indicates the user agent of a search engine should be used
      • 3 = indicates the user agent of a basic browser should be used
  • customWaterMarkId($value) - add a custom watermark to the image
    • Default: empty
  • quality($value) - the quality of the returned image. This currently only effects JPG images, which has a default compression of 85%.
    • Reducing the quality will reduce the filesize and reduce download times.
    • Default: -1
    • Minimum: -1
    • Maximum: 100
  • transparent($value) - if 1 the image capture should be transparent. This is only compatible with png and tiff images.
    • Default: 0
  • hd($value) - if 1 the image capture will be in high definition this doubles the size of the image dimensions.
    • Default: 0
  • country($value) - the country the screenshot should be taken from.
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: The current fastest location
    • Options: "SG", "UK", "US"
  • exportURL($value) - the export URL that specifies where the capture should be exported too
    • Default: empty
  • encryptionKey($value) - if a base 64 encoded AES encryption key is specified your capture is encrypted when it is created. As Perl has poor native encryption facilities you need to follow these instructions to decrypt an encrypted capture.
    • Default: empty
  • noAds($value) - if true adverts should be automatically hidden.
    • Default: false
  • noCookieNotifications($value) - if true all commonly found cookie notifications should be automatically hidden.
    • Default: false
  • address($value) - the URL to execute the HTML code in. Can be useful if the HTML being converted uses relative URL's to resources such as CSS and images.
    • Default: empty
  • proxy($value) - the HTTP proxy details the browser software should use to use to create this capture
    • Default: empty

Public Methods

  • AddPostParameter($name, $value) - defines a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force GrabzIt to perform a HTTP post.
    • name - the name of the HTTP Post parameter
    • value - the value of the HTTP Post parameter

URLToPDF($url, $options)

Specifies the URL that should be converted into a PDF.

Parameters

  • url - the URL that the should be converted into a PDF
    • Required
  • options - a instance of the GrabzItPDFOptions class that defines any special options to use when creating a PDF.

Return Value

void

HTMLToPDF($html, $options)

Specifies the HTML that should be converted into a PDF.

Parameters

  • html - the HTML to convert into a PDF
    • Required
  • options - a instance of the GrabzItPDFOptions class that defines any special options to use when creating a PDF.

Return Value

void

FileToPDF($path, $options)

Specifies a HTML file that should be converted into a PDF.

Parameters

  • path - the file path of a HTML file to convert into a PDF
    • Required
  • options - a instance of the GrabzItPDFOptions class that defines any special options to use when creating a PDF.

Return Value

void

GrabzItPDFOptions

The class represents all of the options available when creating PDF captures.

Public Properties

  • customId($value) - a custom identifier that you can pass through to the webservice. This will be returned with the callback URL you have specified.
    • Default: empty
  • includeBackground($value) - if 1 the background of the web page should be included in the PDF
    • Default: 1
  • pagesize($value) - the page size of the PDF
    • Default: "A4"
    • Options: "A3", "A4", "A5", "A6", "B3", "B4", "B5", "B6", "Legal", "Letter"
  • orientation($value) - the orientation of the PDF document
    • Default: "Portrait"
    • Options: "Portrait", "Landscape"
  • includeLinks($value) - 1 if links should be included in the PDF
    • Default: 1
  • includeOutline($value) - 1 if PDF bookmarks should be included
    • Default: 0
  • title($value) - provide a title to the PDF document
    • Default: empty
  • coverURL($value) - the URL of a web page that should be used as a cover page for the PDF
    • Default: empty
  • marginTop($value) - the margin in millimeters that should appear at the top of the PDF document page
    • Default: 10
  • marginLeft($value) - the margin in millimeters that should appear at the left of the PDF document page
    • Default: 10
  • marginBottom($value) - the margin in millimeters that should appear at the bottom of the PDF document page
    • Default: 10
  • marginRight($value) - the margin in millimeters that should appear at the right of the PDF document
    • Default: 10
  • browserWidth($value) - the width of the browser in pixels
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: 1024
    • Maximum: 10000
    • Auto Width: -1 (passing -1 means that the width of the browser matches the width of the PDF document)
  • pageWidth - the custom width of the resulting PDF in mm
  • pageHeight - the custom height of the resulting PDF in mm
  • delay($value) - the number of milliseconds to wait before taking the screenshot
    • Default: 0
    • Maximum: 30000
  • requestAs($value) - the type of user agent you wish to use
    • Default: 0
    • Options:
      • 0 = indicates the user agent of a standard browser should be used
      • 1 = indicates the user agent of a mobile browser should be used
      • 2 = indicates the user agent of a search engine should be used
      • 3 = indicates the user agent of a basic browser should be used
  • templateId($value) - add a template ID that specifies the header and footer of the PDF document
    • Default: empty
  • targetElement($value) - the id or class CSS selector of the only HTML element on the target web page that is to be turned into a PDF, all other parts of the web page are ignored. If there are multiple matching HTML elements the first one is chosen
    • Default: empty
  • hideElement($value) - the id or class CSS selectors of the one or more HTML elements in the web page to hide, to specify multiple HTML elements to hide seperate each selector with a comma
    • Default: empty
  • waitForElement($value) - the id or class CSS selectors of the HTML element in the web page that must be visible before the capture is performed
    • Default: empty
  • customWaterMarkId($value) - add a custom watermark to each page of the PDF document
    • Default: empty
  • quality($value) - the quality of the returned PDF. The default uses the recommended quality for a PDF.
    • Reducing the quality will reduce the filesize and reduce download times.
    • Default: -1
    • Minimum: -1
    • Maximum: 100
  • country($value) - the country the screenshot should be taken from.
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: The current fastest location
    • Options: "SG", "UK", "US"
  • exportURL($value) - the export URL that specifies where the capture should be exported too
    • Default: empty
  • encryptionKey($value) - if a base 64 encoded AES encryption key is specified your capture is encrypted when it is created. As Perl has poor native encryption facilities you need to follow these instructions to decrypt an encrypted capture.
    • Default: empty
  • noAds($value) - if true adverts should be automatically hidden.
    • Default: false
  • noCookieNotifications($value) - if true all commonly found cookie notifications should be automatically hidden.
    • Default: false
  • address($value) - the URL to execute the HTML code in. Can be useful if the HTML being converted uses relative URL's to resources such as CSS and images.
    • Default: empty
  • proxy($value) - the HTTP proxy details the browser software should use to use to create this capture
    • Default: empty
  • mergeId($value) - the ID of a capture that should be merged at the beginning of the new PDF document
    • Default: empty

Public Methods

  • AddPostParameter($name, $value) - defines a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force GrabzIt to perform a HTTP post.
    • name - the name of the HTTP Post parameter
    • value - the value of the HTTP Post parameter
  • AddTemplateParameter($name, $value) - define a custom template parameter and value, this method can be called multiple times to add multiple parameters.
    • name - the name of the template parameter
    • value - the value of the template parameter

URLToDOCX($url, $options)

Specifies the URL that should be converted into a DOCX.

Parameters

  • url - the URL that the should be converted into a DOCX
    • Required
  • options - a instance of the GrabzItDOCXOptions class that defines any special options to use when creating a DOCX.

Return Value

void

HTMLToDOCX($html, $options)

Specifies the HTML that should be converted into a DOCX.

Parameters

  • html - the HTML to convert into a DOCX
    • Required
  • options - a instance of the GrabzItDOCXOptions class that defines any special options to use when creating a DOCX.

Return Value

void

FileToDOCX($path, $options)

Specifies a HTML file that should be converted into a DOCX.

Parameters

  • path - the file path of a HTML file to convert into a DOCX
    • Required
  • options - a instance of the GrabzItDOCXOptions class that defines any special options to use when creating a DOCX.

Return Value

void

GrabzItDOCXOptions

The class represents all of the options available when creating DOCX captures.

Public Properties

  • customId($value) - a custom identifier that you can pass through to the webservice. This will be returned with the callback URL you have specified.
    • Default: empty
  • setIncludeBackground($value) - if 1 the background images of the web page should be included in the screenshot
    • Default: 1
  • pagesize($value) - the page size of the DOCX
    • Default: "A4"
    • Options: "A3", "A4", "A5", "A6", "B3", "B4", "B5", "B6", "Legal", "Letter"
  • orientation($value) - the orientation of the DOCX document
    • Default: "Portrait"
    • Options: "Portrait", "Landscape"
  • includeLinks($value) - 1 if links should be included in the DOCX
    • Default: 1
  • includeImages($value) - if 1 the background images of the web page should be included in the screenshot
    • Default: 1
  • title($value) - provide a title to the DOCX document
    • Default: empty
  • marginTop($value) - the margin in millimeters that should appear at the top of the DOCX document page
    • Default: 10
  • marginLeft($value) - the margin in millimeters that should appear at the left of the DOCX document page
    • Default: 10
  • marginBottom($value) - the margin in millimeters that should appear at the bottom of the DOCX document page
    • Default: 10
  • marginRight($value) - the margin in millimeters that should appear at the right of the DOCX document
    • Default: 10
  • browserWidth($value) - the width of the browser in pixels
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: 1024
    • Maximum: 10000
    • Auto Width: -1 (passing -1 means that the width of the browser matches the width of the DOCX document)
  • pageWidth - the custom width of the resulting DOCX in mm
  • pageHeight - the custom height of the resulting DOCX in mm
  • delay($value) - the number of milliseconds to wait before taking the screenshot
    • Default: 0
    • Maximum: 30000
  • requestAs($value) - the type of user agent you wish to use
    • Default: 0
    • Options:
      • 0 = indicates the user agent of a standard browser should be used
      • 1 = indicates the user agent of a mobile browser should be used
      • 2 = indicates the user agent of a search engine should be used
      • 3 = indicates the user agent of a basic browser should be used
  • templateId($value) - add a template ID that specifies the header and footer of the DOCX document
    • Default: empty
  • targetElement($value) - the id or class CSS selector of the only HTML element on the target web page that is to be turned into a DOCX, all other parts of the web page are ignored. If there are multiple matching HTML elements the first one is chosen
    • Default: empty
  • hideElement($value) - the id or class CSS selectors of the one or more HTML elements in the web page to hide, to specify multiple HTML elements to hide seperate each selector with a comma
    • Default: empty
  • waitForElement($value) - the id or class CSS selectors of the HTML element in the web page that must be visible before the capture is performed
    • Default: empty
  • quality($value) - the quality of the returned DOCX. The default uses the recommended quality for a DOCX.
    • Reducing the quality will reduce the filesize and reduce download times.
    • Default: -1
    • Minimum: -1
    • Maximum: 100
  • country($value) - the country the screenshot should be taken from.
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: The current fastest location
    • Options: "SG", "UK", "US"
  • exportURL($value) - the export URL that specifies where the capture should be exported too
    • Default: empty
  • encryptionKey($value) - if a base 64 encoded AES encryption key is specified your capture is encrypted when it is created. As Perl has poor native encryption facilities you need to follow these instructions to decrypt an encrypted capture.
    • Default: empty
  • noAds($value) - if true adverts should be automatically hidden.
    • Default: false
  • noCookieNotifications($value) - if true all commonly found cookie notifications should be automatically hidden.
    • Default: false
  • address($value) - the URL to execute the HTML code in. Can be useful if the HTML being converted uses relative URL's to resources such as CSS and images.
    • Default: empty
  • proxy($value) - the HTTP proxy details the browser software should use to use to create this capture
    • Default: empty
  • mergeId($value) - the ID of a capture that should be merged at the beginning of the new DOCX document
    • Default: empty

Public Methods

  • AddPostParameter($name, $value) - defines a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force GrabzIt to perform a HTTP post.
    • name - the name of the HTTP Post parameter
    • value - the value of the HTTP Post parameter
  • AddTemplateParameter($name, $value) - define a custom template parameter and value, this method can be called multiple times to add multiple parameters.
    • name - the name of the template parameter
    • value - the value of the template parameter

URLToTable($url, $options)

Specifies the URL that the HTML tables should be extracted from.

Parameters

  • url - the URL to extract HTML tables from
    • Required
  • options - a instance of the GrabzItTableOptions class that defines any special options to use when converting the HTML table.

Return Value

void

HTMLToTable($html, $options)

Specifies the HTML that the HTML tables should be extracted from.

Parameters

  • html - the HTML to extract HTML tables from.
    • Required
  • options - a instance of the GrabzItTableOptions class that defines any special options to use when converting the HTML table.

Return Value

void

FileToTable($path, $options)

Specifies a HTML file that the HTML tables should be extracted from.

Parameters

  • path - the file path of a HTML file to extract HTML tables from.
    • Required
  • options - a instance of the GrabzItTableOptions class that defines any special options to use when converting the HTML table.

Return Value

void

GrabzItTableOptions

The class represents all of the options available when converting HTML tables to CSV, XLSX or JSON.

Public Properties

  • customId($value) - a custom identifier that you can pass through to the webservice. This will be returned with the callback URL you have specified
    • Default: empty
  • tableNumberToInclude($value) - the index of the table to be converted, were all tables in a web page are ordered from the top of the web page to bottom
    • Default: 1
  • format($value) - the format the table should be in
    • Default: "csv"
    • Options: "csv", "json", "xlsx"
  • includeHeaderNames($value) - if 1 header names will be included in the table
    • Default: 1
  • includeAllTables($value) - if 1 all table on the web page will be extracted with each table appearing in a seperate spreadsheet sheet. Only available with the XLSX format
    • Default: 0
  • targetElement($value) - the id of the only HTML element in the web page that should be used to extract tables from
    • Default: empty
  • requestAs($value) - the type of user agent you wish to use
    • Default: 0
    • Options:
      • 0 = indicates the user agent of a standard browser should be used
      • 1 = indicates the user agent of a mobile browser should be used
      • 2 = indicates the user agent of a search engine should be used
      • 3 = indicates the user agent of a basic browser should be used
  • country($value) - the country the screenshot should be taken from.
    • Warning this feature is currently in beta and may not provide consistent results.
    • Default: The current fastest location
    • Options: "SG", "UK", "US"
  • exportURL($value) - the export URL that specifies where the capture should be exported too
    • Default: empty
  • encryptionKey($value) - if a base 64 encoded AES encryption key is specified your capture is encrypted when it is created. As Perl has poor native encryption facilities you need to follow these instructions to decrypt an encrypted capture.
    • Default: empty
  • address($value) - the URL to execute the HTML code in. Can be useful if the HTML being converted uses relative URL's to resources such as CSS and images.
    • Default: empty
  • proxy($value) - the HTTP proxy details the browser software should use to use to create this capture
    • Default: empty

Public Methods

  • AddPostParameter($name, $value) - defines a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force GrabzIt to perform a HTTP post.
    • name - the name of the HTTP Post parameter
    • value - the value of the HTTP Post parameter

This is the recommended method of saving a file

Save($callBackURL = '')

Save the result asynchronously and returns a unique identifier, which can be used to get the screenshot with the GetResult method.

Parameters

  • callBackURL - the handler the GrabzIt service should call after it has completed its work

Return Value

The unique identifier of the screenshot otherwise if a error has occured an exception is thrown. This can be used to get the screenshot with the GetResult method


Warning this method is synchronous so will cause a application to pause while the result is processed

SaveTo()

Save the result synchronously to a variable containing the screenshot byte data.

Return Value

returns the byte data of the file if successful otherwise it throws an exception.


Warning this method is synchronous so will cause a application to pause while the result is processed

SaveTo($saveToFile)

Save the result synchronously to a file.

Parameters

  • saveToFile - the file path that capture will be saved to once it has been completed
    • Required

Return Value

returns the 1 if it is successful otherwise it throws an exception.


GetStatus($id)

Get the current status of a GrabzIt screenshot.

Parameters

  • id - the unique identifier of the screenshot
    • Required

Return Value

GrabzItStatus object


GetCookies($domain)

Get all the cookies that GrabzIt is using for a particular domain. This may include user defined cookies as well.

Parameters

  • domain - the domain to return cookies for
    • Required

Return Value

GrabzItCookie array


SetCookie($name, $domain, $value = '', $path = '/', $httponly = 0, $expires = '')

Sets a new custom cookie on GrabzIt, if the custom cookie has the same name and domain as a global cookie the global cookie is overridden.

This can be useful if a websites functionality is controlled by cookies.

Parameters

  • name - the name of the cookie to set
    • Required
  • domain - the domain of the website to set the cookie for
    • Required
  • value - the value of the cookie
  • path - the website path the cookie relates to
  • httponly - if 1 the cookie can only be used with the HTTP protocol
  • expires - defines when the cookie expires. Pass a null value if the cookie should not expire
    • Should be in the format yyyy-mm-dd hh:mm:ss

Return Value

1 if the cookie is successfully set, otherwise 0


DeleteCookie($name, $domain)

Delete a custom cookie or block a global cookie from being used

Parameters

  • name - the name of the cookie to delete
    • Required
  • domain - the domain of the website to delete the cookie for
    • Required

Return Value

1 if the cookie is successfully deleted, otherwise 0


GetWaterMarks()

Get your uploaded custom watermarks

Return Value

GrabzItWaterMark array


GetWaterMark($identifier)

Return your custom watermarks that matches the specified identifier

Parameters

  • identifier - the identifier of a particular custom watermark you want to view
    • Required

Return Value

GrabzItWaterMark


AddWaterMark($identifier, $path, $xpos, $ypos)

Add a new custom watermark

Parameters

  • identifier - the identifier you want to give the custom watermark. It is important that this identifier is unique.
    • Required
  • path - the absolute path of the watermark on your server. For instance C:/watermark/1.png
    • Required
  • xpos - the horizontal position you want the screenshot to appear at
    • Required
    • Options:
      • Left = 0
      • Center = 1
      • Right = 2
  • ypos - vertical position you want the screenshot to appear at
    • Required
    • Options:
      • Top = 0
      • Middle = 1
      • Bottom = 2

Return Value

returns 1 if the watermark was successfully set


DeleteWaterMark($identifier)

Delete a custom watermark

Parameters

  • identifier - the identifier of the custom watermark you want to delete
    • Required

Return Value

returns 1 if the watermark was successfully deleted


UseSSL($value)

Specifies if requests to GrabzIt's API should use SSL or not

Parameters

  • value - if 1 all requests to GrabzIt's API will use SSL
    • Required

Result Classes

GrabzItCookie

Public Methods

  • getName()
    • The cookie name.
  • getValue()
    • The cookie value.
  • getDomain()
    • The domain the cookie is set for.
  • getPath()
    • The path on the domain that this cookie applies to.
  • getHttpOnly()
    • If this cookie is only valid when the website is viewed with the HTTP protocol.
  • getExpires()
    • The date this cookie expires
  • getType()
    • The type of cookie this is, which can be one of the following:
      • Global - this is a global cookie set by GrabzIt
      • Local - this is a local cookie set by you
      • Overridden - a global cookie that has been overridden by you

GrabzItStatus

The class representing the current status of the screenshot.

Public Methods

  • getProcessing()
    • If 1 the screenshot is still being processed.
  • getCached()
    • If 1 the screenshot is has been processed and is currently cached.
  • getExpired()
    • If 1 the screenshot is no longer on the GrabzIt system.
  • getMessage()
    • An error message returned by the system.

GrabzItWaterMark

This class represents the custom watermarks stored in GrabzIt

Public Methods

  • getIdentifier()
    • The identifier of the watermark
  • getXPosition()
    • The horizontal postion of the watermark
      • Left = 0
      • Center = 1
      • Right = 2
  • getYPosition()
    • The vertical postion of the watermark
      • Top = 0
      • Middle = 1
      • Bottom = 2
  • getFormat()
    • The format of the watermark
Try all our premium features for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.
  • More Captures
  • More Features
  • More API's
  • Bigger Scrapes
  • Bigger Captures
  • Bigger Everything
Start Free Trial