Skip to content
leonbarrett edited this page Nov 9, 2010 · 1 revision

Explanation

Response may have from 1 to 10 values. There are 2 possible display types per message: 0=Info (grey corner icon), 1=Alert (yellow corner icon).

Simply pass in an array containing the text and type into the api method. A formatted XML block will be returned.

API Call

$this->geckoboard_api->return_geckoboard_text($data);

Usage

$data = array();
			
$data[0]['label'] = 'This is an alert';
$data[0]['type'] = 1;

$data[0]['label'] = 'This is some info';
$data[0]['type'] = 0;
	  		
$response = $this->geckoboard_api->return_geckoboard_text($data);

Clone this wiki locally