<commit_before># Getclicky API Analytics Library

A swiss knife ruby wrapper for Getclicky API Analytics. For more information see: http://getclicky.com/help/api.

## Installation

``` ruby
## Gemfile for Rails 3, Sinatra, and Merb
gem 'getclicky', '~> 0.1'
```

## Usage

### Ruby wrapper

First, you'll need to set up your site_id and sitekey. You can discover this information by accessing settings in your account at http://getclicky.com.

``` ruby
Getclicky.configure do |config|
  config.site_id = "your site id here"
  config.sitekey = "your site key here"
end
```

Then you can simply instantiate a new Getclicky::Client object.

``` ruby
getclicky = Getclicky::Client.new
```
					
All types in API are methods here looks, you can find all types http://getclicky.com/help/api:

``` ruby
getclicky.pages()
getclicky.tweets()
getclicky.visitors()
```
	
In each method you can pass optional parameters as a hash looks:

``` ruby
getclicky.visitors(:date => "last-7-days", :daily => 1)
getclicky.item(:date => "last-7-days", :item => "google.com")
getclicky.visitors_list(:domain => "google.com")
```

You can also request more than one data type in a single request:

``` ruby
getclicky.multiple([:pages, :downloads], {:date => "last-7-days"})
```
	
By default getclicky API returns an array of [Hashies](https://github.com/intridea/hashie) as data, but you can change by providing an :output parameter like:

##### JSON

``` ruby
getclicky.visitors(:output => :json, :date => "last-7-days", :daily => 1)
```
	
##### CSV

``` ruby
getclicky.visitors(:output => :csv, :date => "last-7-days", :daily => 1)
```
	
##### PHP

``` ruby
getclicky.visitors(:output => :php, :date => "last-7-days", :daily => 1)
```
	
Enjoy!

## Roadmap

* Multiple types for request
* Improve the tests
	
## Maintainer

* <NAME> (<EMAIL>)<commit_msg>Add collaborators to README<commit_after># Getclicky API Analytics Library

A swiss knife ruby wrapper for Getclicky API Analytics. For more information see: http://getclicky.com/help/api.

## Installation

``` ruby
## Gemfile for Rails 3, Sinatra, and Merb
gem 'getclicky', '~> 0.1'
```

## Usage

### Ruby wrapper

First, you'll need to set up your site_id and sitekey. You can discover this information by accessing settings in your account at http://getclicky.com.

``` ruby
Getclicky.configure do |config|
  config.site_id = "your site id here"
  config.sitekey = "your site key here"
	config.admin_sitekey = "your admin site key, if applicable"
end
```

Then you can simply instantiate a new Getclicky::Client object.

``` ruby
getclicky = Getclicky::Client.new
```
					
All types in API are methods here looks, you can find all types http://getclicky.com/help/api:

``` ruby
getclicky.pages()
getclicky.tweets()
getclicky.visitors()
```
	
In each method you can pass optional parameters as a hash looks:

``` ruby
getclicky.visitors(:date => "last-7-days", :daily => 1)
getclicky.item(:date => "last-7-days", :item => "google.com")
getclicky.visitors_list(:domain => "google.com")
```

You can also request more than one data type in a single request:

``` ruby
getclicky.multiple([:pages, :downloads], {:date => "last-7-days"})
```
	
By default getclicky API returns an array of [Hashies](https://github.com/intridea/hashie) as data, but you can change by providing an :output parameter like:

##### JSON

``` ruby
getclicky.visitors(:output => :json, :date => "last-7-days", :daily => 1)
```
	
##### CSV

``` ruby
getclicky.visitors(:output => :csv, :date => "last-7-days", :daily => 1)
```
	
##### PHP

``` ruby
getclicky.visitors(:output => :php, :date => "last-7-days", :daily => 1)
```
	
Enjoy!

## Roadmap

* Improve the tests
	
## Author

* <NAME> (refactoringever.com)

## Collaborators

* <NAME> (github.com/uhlenbrock)
{'fraction_non_alphanumeric': 0.15605095541401273, 'fraction_numerical': 0.006900212314225053, 'mean_word_length': 4.361308677098151, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3646850', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1231, 'n_words': 408}