Module: Linkshare

Defined in:
lib/linkshare.rb,
lib/linkshare/coupon.rb,
lib/linkshare/events.rb,
lib/linkshare/request.rb,
lib/linkshare/version.rb,
lib/linkshare/response.rb,
lib/linkshare/strategy.rb,
lib/linkshare/link_locator.rb,
lib/linkshare/custom_reports.rb,
lib/linkshare/product_search.rb,
lib/linkshare/advanced_reports.rb,
lib/linkshare/advertiser_search.rb

Defined Under Namespace

Classes: AdvancedReports, AdvertiserSearch, Coupon, CustomReports, Events, LinkLocator, ProductSearch, Request, Response, Strategy

Constant Summary collapse

API_URIS =
{
  coupon: "https://api.rakutenmarketing.com/coupon/1.0",
  link_locator: "https://api.rakutenmarketing.com/linklocator/1.0",
  advanced_reports: "https://api.rakutenmarketing.com/advancedreports/1.0",
  custom_reports: "https://ran-reporting.rakutenmarketing.com/en/reports",
  product_search: "https://api.rakutenmarketing.com/productsearch/1.0",
  events: "https://api.rakutenmarketing.com/events/1.0/transactions",
  advertiser_search: "https://api.rakutenmarketing.com/advertisersearch/1.0"
}
SITE =
"https://api.rakutenmarketing.com/"
TOKEN_URL =
"token/"
VERSION =
"0.1.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.consumer_keyObject

Returns the value of attribute consumer_key.



28
29
30
# File 'lib/linkshare.rb', line 28

def consumer_key
  @consumer_key
end

.consumer_secretObject

Returns the value of attribute consumer_secret.



28
29
30
# File 'lib/linkshare.rb', line 28

def consumer_secret
  @consumer_secret
end

.custom_report_tokenObject

Returns the value of attribute custom_report_token.



28
29
30
# File 'lib/linkshare.rb', line 28

def custom_report_token
  @custom_report_token
end

.passwordObject

Returns the value of attribute password.



28
29
30
# File 'lib/linkshare.rb', line 28

def password
  @password
end

.security_tokenObject

Returns the value of attribute security_token.



28
29
30
# File 'lib/linkshare.rb', line 28

def security_token
  @security_token
end

.sidObject

Returns the value of attribute sid.



28
29
30
# File 'lib/linkshare.rb', line 28

def sid
  @sid
end

.usernameObject

Returns the value of attribute username.



28
29
30
# File 'lib/linkshare.rb', line 28

def username
  @username
end

Class Method Details

.advancedreportsObject



47
48
49
# File 'lib/linkshare.rb', line 47

def self.advancedreports
  @advancedreports ||= Linkshare::AdvancedReports.new
end

.advertisersearchObject



55
56
57
# File 'lib/linkshare.rb', line 55

def self.advertisersearch
  @advertisersearch ||= Linkshare::AdvertiserSearch.new
end

.couponObject



35
36
37
# File 'lib/linkshare.rb', line 35

def self.coupon
  @coupon ||= Linkshare::Coupon.new
end

.customreportsObject



51
52
53
# File 'lib/linkshare.rb', line 51

def self.customreports
  @customreports ||= Linkshare::CustomReports.new
end

.eventsObject



59
60
61
# File 'lib/linkshare.rb', line 59

def self.events
  @events ||= Linkshare::Events.new
end

.linklocatorObject



39
40
41
# File 'lib/linkshare.rb', line 39

def self.linklocator
  @linklocator ||= Linkshare::LinkLocator.new
end

.productsearchObject



43
44
45
# File 'lib/linkshare.rb', line 43

def self.productsearch
  @productsearch ||= Linkshare::ProductSearch.new
end

.tokenObject



31
32
33
# File 'lib/linkshare.rb', line 31

def self.token
  @token ||= Linkshare::Strategy.new(client).get_token(Linkshare.username, Linkshare.password, Linkshare.sid);
end