-
Notifications
You must be signed in to change notification settings - Fork 0
Text
leonbarrett edited this page Nov 9, 2010
·
1 revision
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.
$this->geckoboard_api->return_geckoboard_text($data);$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);