Gyftwrapper
The Gyftwrapper provides Ruby APIs to purchase cards using the Gyft API.
Installation
Add this line to your application's Gemfile:
gem 'gyftwrapper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install gyftwrapper
Usage
Create a configuration file(config/gyftwrapper.yml):
development: &default
api_key: your_key
api_secret: your_secret
endpoint: https://apitest.gyft.com/mashery/v1
test:
<<: *default
production:
api_key: your_key
api_secret: your_secret
endpoint: https://api.gyft.com/mashery/v1
Purchase shop card
Gyftwrapper.purchase_card(shop_card_id: 123, to_email: '[email protected]')
Contributing
- Fork it ( https://github.com/[my-github-username]/gyftwrapper/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request