Class: HasOffersV3::AffiliateOffer
- Inherits:
-
Base
- Object
- Base
- HasOffersV3::AffiliateOffer
show all
- Defined in:
- lib/hasoffersv3/affiliate_offer.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#client, client, #get_request, #initialize, #make_request, method_missing, #post_request, #requires!
Class Method Details
.target ⇒ Object
3
4
5
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 3
def self.target
'Affiliate_Offer'
end
|
Instance Method Details
#find_all(params = {}) ⇒ Object
11
12
13
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 11
def find_all(params = {})
post_request 'findAll', params
end
|
#find_by_id(params = {}) ⇒ Object
15
16
17
18
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 15
def find_by_id(params = {})
requires! params, [:id]
post_request 'findById', params
end
|
#find_my_approved_offers(params = {}) ⇒ Object
55
56
57
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 55
def find_my_approved_offers(params = {})
get_request 'findMyApprovedOffers', params
end
|
#find_my_offers(params = {}) ⇒ Object
59
60
61
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 59
def find_my_offers(params = {})
post_request 'findMyOffers', params
end
|
#generate_tracking_link(params = {}) ⇒ Object
50
51
52
53
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 50
def generate_tracking_link(params = {})
requires! params, [:offer_id]
post_request 'generateTrackingLink', params
end
|
#get_approval_questions(params = {}) ⇒ Object
20
21
22
23
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 20
def get_approval_questions(params = {})
requires! params, [:offer_id]
get_request 'getApprovalQuestions', params
end
|
#get_categories(params = {}) ⇒ Object
25
26
27
28
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 25
def get_categories(params = {})
requires! params, [:ids]
post_request 'getCategories', params
end
|
#get_payout_details(params = {}) ⇒ Object
30
31
32
33
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 30
def get_payout_details(params = {})
requires! params, [:offer_id]
get_request 'getPayoutDetails', params
end
|
#get_pixels(params = {}) ⇒ Object
35
36
37
38
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 35
def get_pixels(params = {})
requires! params, [:id]
get_request 'getPixels', params
end
|
#get_target_countries(params = {}) ⇒ Object
40
41
42
43
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 40
def get_target_countries(params = {})
requires! params, [:ids]
post_request 'getTargetCountries', params
end
|
#get_thumbnail(params = {}) ⇒ Object
45
46
47
48
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 45
def get_thumbnail(params = {})
requires! params, [:ids]
get_request 'getThumbnail', params
end
|
#target ⇒ Object
7
8
9
|
# File 'lib/hasoffersv3/affiliate_offer.rb', line 7
def target
'Affiliate_Offer'
end
|