ferblape / rnvivo

Ruby client for Nvivo API

This URL has Read+Write access

ferblape (author)
Thu Jun 11 23:28:59 -0700 2009
commit  9ca0091b8a248f54f564d4cdcdc499a28a5468b1
tree    b32aa6148d455d7250e2450a9040ca54b54992c4
parent  0bd4fcd8290061701cde906a1378b72f6100e6ca
rnvivo /
name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
directory lib/
directory test/
README
# Nvivo API digester

A small Ruby class for consuming [Nvivo API](http://www.nvivo.es/api/index.php).

Requires (all them installable with `sudo gem install`):

  - rubygems
  - httparty
  - mocha
  - timeout
  
## How to use it

At the moment, only the method `getCityEvents` is implemented:

    events = Nvivo.new(NVIVO_API_KEY).cityGetEvents(city_name, iso_country_code)
    
It returns an array of hashes with the name and the nvivo URL of each one:

    'events' => {
      'event' => [
        {
          'name' => 'Wadus event',
          'url' => 'http://wadus.com/wadus-event'
        },
        {
          'name' => 'Wadus event 2',
          'url' => 'http://wadus.com/wadus-event-2' 
        }
      ]
    }
    
Very simple.
  
## TODO

 - implement the rest of the API methods

Copyright (c) 2009 [Fernando Blat](http://www.inwebwetrust.net), released under the MIT license