<commit_before>GeckoboardNet 1.0

This library is intended for Asp.Net Mvc users who want to expose data to Geckoboards. It is tailored
for Mvc use but can easily be adapted for general Asp.Net. The GeckoboardNetMvc sample shows how to use
the library, both with an API key and without. You can find a running example at

http://geckoboard.martinatsunset.com/geckoboard/TestWidget
and 
http://geckoboard.martinatsunset.com/geckoboard/TestWidgetApi which requires the API key 123.

To test it go to your geckoboard and add a custom widget, either chart or normal, then add the url as indicated above,
choose Custom widget format and Json format type and you are good to go.

Given the fact that the library is rather small I packaged everything into a single file, so instead of adding the whole library you can just copy the GeckoboardService.cs file.

How To Use It

In it's simplest form just add this to your action controller:

return new GeckoboardService(Request, (apiKey, widgetType) =>
                new List<DataItem> { new DataItem { @value = 123, text = string.Empty }, new DataItem { @value = 238, text = string.Empty } }
            ).Result();



Bugs and Stuff

At this point XML is not supported. It would be nice to have that one to simplify deployment even more but it is not essential.

The sample data created corresponds directly to the data used in the documenation (see http://support.geckoboard.com/entries/274940-custom-chart-widget-type-definitions?page=1#post_539762 and
 http://support.geckoboard.com/entries/231507-custom-widget-type-definitions).

The Author

You can follow me on twitter at http://twitter.com/martin_sunset . I also have a profile up on http://about.me/martinw <commit_msg>Removed running sample link.<commit_after>GeckoboardNet 1.0

This library is intended for Asp.Net Mvc users who want to expose data to Geckoboards. It is tailored
for Mvc use but can easily be adapted for general Asp.Net. The GeckoboardNetMvc sample shows how to use
the library, both with an API key and without. 

Given the fact that the library is rather small I packaged everything into a single file, so instead of adding the whole library you can just copy the GeckoboardService.cs file.

How To Use It

In it's simplest form just add this to your action controller:

return new GeckoboardService(Request, (apiKey, widgetType) =>
                new List<DataItem> { new DataItem { @value = 123, text = string.Empty }, new DataItem { @value = 238, text = string.Empty } }
            ).Result();



Bugs and Stuff

At this point XML is not supported. It would be nice to have that one to simplify deployment even more but it is not essential.

The sample data created corresponds directly to the data used in the documenation (see http://support.geckoboard.com/entries/274940-custom-chart-widget-type-definitions?page=1#post_539762 and
 http://support.geckoboard.com/entries/231507-custom-widget-type-definitions).

The Author

You can follow me on twitter at http://twitter.com/martin_sunset . I also have a profile up on http://about.me/martinw 
{'fraction_non_alphanumeric': 0.06371911573472042, 'fraction_numerical': 0.018530559167750326, 'mean_word_length': 3.9629032258064516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5575375', 'n_tokens_mistral': 921, 'n_tokens_neox': 857, 'n_words': 406}