Skip to content

ampsy2/ampsy-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages