Project

amiando

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A ruby client for the amiando REST API with parallel requests in mind
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 2.9.0
>= 0
>= 0
~> 1.7.9

Runtime

 Project Readme

amiando Build Status

This is a gem to access the amiando REST API. You can check the original documentation here:

http://developers.amiando.com/index.php/REST_API

Installation

Simply install with:

gem install amiando

To parse the json results we use the multi_json gem. We suggest that you add at least one fast json parsing library, like json or yajl-ruby. Otherwise it will use multi_json's bundled json parser.

Basic usage

The gem has been implemented with the idea that requests can be done in parallel using Typhoeus.

You can query multiple requests and run then like this:

albert = Amiando::User.find(1234)
jorge  = Amiando::User.find(5678)

Amiando.run

Both requests will happen in parallel.

You can also do synchronous requests by prepending 'sync_' to the method name:

albert = Amiando::User.sync_find(1234)

Notation

All attributes should be used in snake_case format instead of the CamelCase used in the official documentation. For example, for a user, you should call first_name instead of firstName.

Documentation

The full amiando API isn't fully implemented yet, however you can find here the ones currently available.