Project

ampsy

0.0
No commit activity in last 3 years
No release in over 3 years
Ampsy API wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

~> 0.13
 Project Readme

Ampsy

Ampsy API wrapper.

Installation

Add this line to your application's Gemfile:

gem 'ampsy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ampsy

Usage

client = Ampsy::Client.new 'the-access-token'

data = client.flips flipbook_id
puts data.inspect

result = client.create_flipbook brand_id, kind: 'crowdbook',
                                          title: 'Test Crowdbook'#, ...
if result.success?
  puts result.data.inspect
else
  puts result.error_message
end


client.create_card number: '4111 1111 1111 1111',
                   name: 'Test User',
                   expiration_month: 1,
                   expiration_year: 2020,
                   secret_token: 123

# ...

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/fliptu/ampsy-gem.

License

The gem is available as open source under the terms of the MIT License.