GithubHelp home page GithubHelp logo

clicky-api's Introduction

Clicky-api is a Ruby Gem which interfaces with version 4 of the Clicky web 
analytics API, documented at http://getclicky.com/help/api.

Usage:

ClickyAPI.set_params!(params={})

  Sets the given parameters persistently, in a class variable (so the 
  settings are applied globally).  Setting the Clicky site_id and sitekey 
  here is a good idea.
  
ClickyAPI.get_params

  Returns the current hash of persistent params set by #set_params!.
  This hash may be manipulated directly, e.g. to delete keys; if you 
  need to alter it without affecting ClickyAPI everywhere, make a copy.
  
ClickyAPI.load_config_file!(file=nil)

  Loads the given YAML config file and passes its keys and values to 
  #set_params!.  If no file is specified and you're using Rails, 
  #load_config_file! will use the contents of "config/clicky-api.yml".

ClickyAPI.stats(params={})

  Queries the Clicky server with the given params, merging them with 
  any parameters set with #set_params!.  Returns a Ruby hash representation 
  of the response.


This gem was written by Pete Gamache with the gracious support of Where, Inc.
It is Copyright (c) 2010 Where, Inc. and is released under the MIT License.

clicky-api's People

Contributors

gamache avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

basecamp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.