Skip to content

The official Ruby gem to integrate your app with Paytunia

License

Notifications You must be signed in to change notification settings

paytunia/paytunia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The official Ruby gem to integrate your app with Paytunia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages