php-geckoboard-api icon indicating copy to clipboard operation
php-geckoboard-api copied to clipboard

Support for LeaderBoard optional parameters

Open joeserg opened this issue 9 years ago • 0 comments
trafficstars

Hey,

First off, this is a very useful library, so thank you for writing it!

I was wondering you would be able to add support for a couple of optional parameters on the LeaderBoard widget?

According to the Geckoboard API Docs you can optionally supply format and unit parameters:

https://developer.geckoboard.com/#parameters-10

It would be great to be able to do something like this:

$widget = new LeaderBoard();

$widget->setId( $widget_id );

$widget->setFormat('currency');

$widget->setUnit('GBP');

...

Thanks in advance.

joeserg avatar Dec 14 '15 15:12 joeserg