Sha256: 6ae75fff997453e3b43c1ff71c2ed34244ec575765e1a657ebf01d5f7113ccb2
Contents?: true
Size: 1.14 KB
Versions: 17
Compression:
Stored size: 1.14 KB
Contents
require 'voucherify' voucherify = Voucherify::Client.new({ :applicationId => 'c70a6f00-cf91-4756-9df5-47628850002b', :clientSecretKey => '3266b9f8-e246-4f79-bdf0-833929b1380c' }) new_customer = voucherify.customers.create({ name: 'John Doe', email: 'john@email.com', description: 'Sample description about customer', metadata: { lang: 'en' } }) puts 'Created Customer:' puts new_customer customer = voucherify.customers.get new_customer['id'] puts 'Retrieved Customer:' puts customer customer[:description] = 'Sample description of customer with updates' updated_customer = voucherify.customers.update customer puts 'Updated Customer:' puts updated_customer voucherify.customers.delete updated_customer['id']
Version data entries
17 entries across 17 versions & 1 rubygems