Module: AffiliationApi
- Defined in:
- lib/affiliation-api/ad.rb,
lib/affiliation-api/sale.rb,
lib/affiliation-api/offer.rb,
lib/affiliation-api-client.rb,
lib/affiliation-api/client.rb,
lib/affiliation-api/program.rb,
lib/affiliation-api/version.rb,
lib/affiliation-api/category.rb,
lib/affiliation-api/merchant.rb,
lib/affiliation-api/resource.rb,
lib/affiliation-api/merchant_version.rb
Defined Under Namespace
Classes: Ad, Category, Client, Merchant, MerchantVersion, Offer, Program, Resource, Sale
Constant Summary collapse
- VERSION =
'0.1.14'
Class Method Summary collapse
Class Method Details
.setup(api_key, api_secret, api_endpoint = 'https://affiliation.api.wizypay.com') ⇒ Object
14 15 16 17 |
# File 'lib/affiliation-api-client.rb', line 14 def self.setup(api_key, api_secret, api_endpoint='https://affiliation.api.wizypay.com') AffiliationApi::Resource::base_url = api_endpoint AffiliationApi::Resource::with_hmac(api_key, api_secret) end |