This is a Codeigniter library for iron.io.
To start using iron.io, you need to sign up and get an oauth token.
- Go to http://iron.io/ and sign up.
- Get an Oauth Token at http://hud.iron.io/tokens
--
- Move library files and directory into application/libraries
- Move configuration file into application/config
--
Edit config/iron_io.php and fill it in with your Iron.io credentials.
--
<?php
$this->load->library('iron_io');
/**
* IronMQ example
*
* For a complete list of available methods look inside Iron_MQ.class.php
*/
$this->iron_io->queue->postMessage($queue_name, $message, $properties = array());
/**
* IronCache example
*
* For a complete list of available methods look inside Iron_Cache.class.php
*/
$this->iron_io->cache->put($key, $item);
$this->iron_io->cache->get($key);
/**
* IronWorker example
*
* For a complete list of available methods look inside Iron_Worker.class.php
*/
$this->iron_io->worker->postTask($name, $payload = array(), $options = array());