Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 486 Bytes
$: << File.expand_path(File.dirname(__FILE__) + '/../lib')
require 'chargify_api_ares'
# You could load your credentials from a file...
chargify_config = YAML::load_file(File.join(File.dirname(__FILE__), '..', 'chargify.yml'))
Chargify.configure do |c|
c.subdomain = chargify_config['subdomain']
c.api_key = chargify_config['api_key']
end
# Retrieve a list of all your customers
subscription = Chargify::Subscription.find(:all).first
transactions = subscription.transactions
Jump to Line
Something went wrong with that request. Please try again.