Skip to content
Ruby wrapper for the aria subscription and billing system API.
Ruby
Pull request Compare This branch is 1 commit ahead, 14 commits behind AriaSystems:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
aria_api.gemspec

README.md

AriaApi Build Status

Please refer to the official Aria repository to get the latest version of the code.

Ruby wrap for the aria billing and subscriptions API.

Installation

gem install aria_api

For Rails Apps. Just add this to Gemfile.

gem "aria_api"

Configuration

First you'll need to define your credentials:

AriaApi::Configuration.auth_key = "the-key"
AriaApi::Configuration.client_no = "the-client"
AriaApi::Configuration.url = "https://secure.future.stage.ariasystems.net/api/ws/api_ws_class_dispatcher.php"

In Rails. You could define specific configuration for each environment.

There's also a parameter to define the version of the Aria API you want to use. Default is 5.15

AriaApi::Configuration.api_version = "5.16"

Usage

AriaApi supports most of the API features defined in https://developer.ariasystems.net/apidocs/web/app.php/api_docs.

Just call the service name as an AriaApi method, the options are the same as the specified in the API docs.

AriaApi.get_country_from_ip(ip_address: "207.97.227.239")
# { "country_code" => "US", "country_name" => "United States", "error_code" => 0, "error_msg" => "OK" }

Note you don't need to pass credentials since they're already defined in the configuration module.

Demo Application

Code

Live App

Something went wrong with that request. Please try again.