0.1.2 • Published 12 years ago

webshot-amqp-client v0.1.2

Weekly downloads
20
License
-
Repository
github
Last release
12 years ago

webshot-amqp-client

A client library to request and receive screenshots from the webshot-amqp AMQP server.

Installation

npm install webshot-amqp-client

Usage

Listening for new screenshots:

var client = require('webshot-amqp-client');

// call init() and pass it a callback function
client.init(function() {

	// define what to do when a screenshot arrives on the queue
	client.onScreenshot(function(err, msg) {
		// "msg" is an object with cloudinary metadata,
		// including the public URL of the screenshot.
	});
	
});

Placing a screenshot request to the webshot-amqp server:

var client = require('webshot-amqp-client');

// call init() and pass it a callback function
client.init(function() {

	client.requestScreenshot('http://www.github.com');
	
});
0.1.2

12 years ago

0.1.1

12 years ago

0.0.1

12 years ago