t2-airtime
T2-Airtime client, t2_airtime.
T2-Airtime is a Ruby gem providing a proxy cache and a REST API to TransferTo Airtime service.
Installation
Install as a Ruby gem
gem install t2_airtime
Using Docker - alternative if you don't install ruby or installation not work for you
Download image:
docker pull voxbox/t2_airtime
Run docker run voxbox/t2_airtime
Build from source code:
docker build -t "voxbox/t2_airtime" .
Setup Transfer-To credentials
- Make sure you are a registered user of Transfer-To.
- Enable Two Factor Authentication (2FA) in your Transfer-To Shop Security Center section
- Retrieve API key (token) created by Transfer-To Shop.
- Export your secrets as an environment variables:
export T2_SHOP_USER=<your_username>
export T2_AIRTIME_KEY=<your_token>
Development
If needed, install bundler:
$ gem install bundlerClone the repo:
$ git clone [email protected]:matteolc/t2_airtime.git $ cd t2_airtimeInstall dependencies:
$ bundle install
Test
Inside the t2_airtime repository directory run:
$ bundle exec rspec
License
Copyright 2015-17 (c) Matteo La Cognata
Released under MIT license. See LICENSE file for further details.