Get a Free Trial

How to setup your GrabzIt Demo

The GrabzIt Demo is designed to provide an example of how to use our API to convert URL's and HTML to images and PDF's, as well as online videos to animated GIF's. Once you have setup you GrabzIt Demo it will allow you to experiment with the other features of GrabzIt's API.

To get the correct instructions for your demo choose the language you are using from the below options.

ASP.NET API Java API JavaScript API Node.js API Perl API PHP API Python API Ruby API

PHP

  1. Download the PHP Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the php/config.php file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace URL OF YOUR GrabzItHandler.php FILE (http://www.example.com/grabzit/handler.php) with the location of your handler.php file.
  4. Load the index.php file in your browser, you can now capture the web!

This is enough information to get the PHP Demo working for more detailed instructions please read the overview of how the PHP API.

JavaScript

  1. Download the JavaScript Demo.
  2. Extract the zip file to a folder on your computer.
  3. Open demo.html and replace YOUR APPLICATION KEY with Sign in to view your Application Key
  4. Open the demo.html in your web browser, you can now capture the web!

This is enough information to get the JavaScript Demo working for more detailed instructions please read the overview of how the JavaScript API.

Ruby

  1. Download the Ruby Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the ruby\GrabzItDemo\config\config.yml file and replace YOUR APPLICATION KEY with Sign in to view your Application Key and YOUR APPLICATION SECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace URL OF YOUR GrabzIt Handler FILE (http://www.example.com/handler/index) with the location of the handler/index
  4. Load the web application in your browser, you can now capture the web!

This is enough information to get the Ruby Demo working for more detailed instructions please read the overview of how the Ruby API.

Python

  1. Download the Python Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the python\config.ini file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace URL OF YOUR handler.py FILE (http://www.example.com/grabzit/handler.py) with the location of the handler.py
  4. Load the index.py file in your browser, you can now capture the web!

This is enough information to get the Python Demo working for more detailed instructions please read the overview of how the Python API.

ASP.NET

  1. Download the ASP.NET Demo.
  2. Extract the zip file on your web server or local machine.
  3. Then choose what type of application you want to test:
    - To run the Web Form demo edit the aspnet\Sample\Web.config file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret. Load the Default.aspx file in your browser, you can now capture the web!
    - To run the MVC demo edit the aspnet\SampleMVC\Web.config file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret.
    - To run the Windows Application demo edit the aspnet\SampleConsole\App.config file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret
  4. Then run the SampleConsole project in Visual Studio.

This is enough information to get the ASP.NET Demo working for more detailed instructions please read the overview of how the ASP.NET API.

Java

  1. Download the Java Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the java\sample\src\java\config.properties file and replace APPLICATIONKEY with Sign in to view your Application Key and APPLICATIONSECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace http://www.example.com/grabzit/handler with the location of the grabzit/handler
  4. Load the Java Application in your browser, you can now capture the web!

This is enough information to get the Java Demo working for more detailed instructions please read the overview of how the Java API.

Node.js

  1. Download the Node.js Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the nodejs\grabzitdemo\config.js file and replace YOUR APPLICATION KEY with Sign in to view your Application Key and YOUR APPLICATION SECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace http://www.yourwebsite.com/handler (Change to the location of your handler) with the location of the /handler
  4. Load the Node.js Application in your browser, you can now capture the web!

This is enough information to get the Node.js Demo working for more detailed instructions please read the overview of how the Node.js API.

Perl

  1. Download the Perl Demo.
  2. Extract the zip file on your web server or local machine.
  3. Edit the perl\config.ini file and replace APPLICATION KEY with Sign in to view your Application Key and APPLICATION SECRET with Sign in to view your Application Secret then if the demo is not on your local machine optionally replace URL OF YOUR handler.pl FILE (http://www.example.com/grabzit/handler.pl) with the location of the handler.pl
  4. Load the index.pl file in your browser, you can now capture the web!

To get an overview of how the API works:

This is enough information to get the Perl Demo working for more detailed instructions please read the overview of how the Perl API.