Skip to content
The official Ruby gem to integrate your app with Paytunia
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
certs
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
paytunia.gemspec

README.md

Paytunia Build Status

The official Ruby gem to integrate your app with Paytunia.

Installation

$ sudo gem install paytunia --pre

or add it to your Gemfile

gem 'paytunia', '0.1.1alpha'

Usage

As a Ruby gem

As a command-line executable

The Paytunia gem can be used directly from the command-line.

$ sudo gem install paytunia
$ paytunia get_ticker
{"high":24.79,"low":23.15, ... ,"currency":"EUR"}

Authentication

HTTP Basic

connection = Paytunia.connect(basic_auth: { username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD')
connection.get_ledger

OAuth2

Connect user the resource-owner credentials flow:

connection = Paytunia.connect(oauth2: { username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD' })
connection.get_ledger

Or pass an access_token directly:

connection = Paytunia.connect(oauth2: { access_token: 'YOUR_TOKEN' })
connection.get_ledger
You can’t perform that action at this time.