class YahooShoppingSearch::Config

Attributes

affiliate_type[RW]
app_id[RW]
pid[RW]
sid[RW]

Public Instance Methods

affiliate_id() click to toggle source

REF: developer.yahoo.co.jp/appendix/shopping/affiliate.html @return [String]

# File lib/yahoo_shopping_search/config.rb, line 9
def affiliate_id
  return if sid.nil? || pid.nil?

  base_url = 'https://ck.jp.ap.valuecommerce.com/servlet/referral'
  URI.encode("#{base_url}?sid=#{sid}&pid=#{pid}&vc_url=")
end