Sha256: 3a8a0a8ac06a1b5c02a7af6ff9948b4965a48709c0fe460562298867dc5f7870

Contents?: true

Size: 709 Bytes

Versions: 6

Compression:

Stored size: 709 Bytes

Contents

# Load the gem
require 'VoucherifySdk'

# Setup authorization
VoucherifySdk.configure do |config|
    # Configure API key authorization: X-App-Id
    config.api_key['X-App-Id'] = 'YOUR API KEY'

    # Configure API key authorization: X-App-Token
    config.api_key['X-App-Token'] = 'YOUR API KEY'

    # (Optional) Configure Voucherify cluster, default is https://api.voucherify.io
    # config.host = 'https://us1.api.voucherify.io'
end

# Creating API Instance
api_instance = VoucherifySdk::CampaignsApi.new

# Calling list_campaigns
begin
    result = api_instance.list_campaigns()
    puts result
rescue VoucherifySdk::ApiError => e
    puts "Exception when calling VouchersApi->list_campaigns: #{e}"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voucherify-8.0.2 example.rb
voucherify-8.0.1 example.rb
voucherify-8.0.0 example.rb
voucherify-7.0.0 example.rb
voucherify-6.0.0 example.rb
voucherify-5.0.0 example.rb