def sign_in_url(ruparams = {})
      url = []
      url << EbayTrader.configuration.production? ? 'https://signin.ebay.com' : 'https://signin.sandbox.ebay.com'
      url << '/ws/eBayISAPI.dll?SignIn'
      url << "&runame=#{url_encode ru_name}"
      url << "&SessID=#{url_encode id}"
      if ruparams && ruparams.is_a?(Hash) && !ruparams.empty?
        params = []
        ruparams.each_pair { |key, value| params << "#{key}=#{value}" }
        url << "&ruparams=#{url_encode(params.join('&'))}"
      end
      url.join
    end
def sign_in_url(ruparams = {})
      url = []
      url << EbayTrader.configuration.production? ? 'https://signin.ebay.com' : 'https://signin.sandbox.ebay.com'
      url << '/ws/eBayISAPI.dll?SignIn'
      url << "&runame=#{url_encode ru_name}"
      url << "&SessID=#{url_encode id}"
      if ruparams && ruparams.is_a?(Hash) && !ruparams.empty?
        params = []
        ruparams.each_pair { |key, value| params << "#{key}=#{value}" }
        url << "&ruparams=#{url_encode(params.join('&'))}"
      end
      url.join
    end
Get the URL through which a user must sign in using this session ID.
 @param [Hash] ruparams eBay appends this data to the AcceptURL and RejectURL.
               In a typical rails app this might include the user's model primary key.
 @return [String] the sign-in URL.