Sha256: 2820210cc0f0510c2098b3314cf910406ccad24a3a61f05a94b5322524f743d2

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

module SpyFu
  module Api
    class Kss < Base
      # More information: https://www.spyfu.com/apis/ad_history_api/domain_ad_history
      BASE_ENDPOINT = 'kss_api'

      # Get list of related keywords
      def related_keywords(params)
        send_get "kss_kws", params
      end

      # Get list of domains related to keyword
      def domain_related_keywords(params)
        send_get "kss_domains", params
      end

      # Backward compatibility
      def get_term_page_keywords(params)
      	params[:q] = params[:keyword]
        if !params[:maxRows].nil?
          params[:r] = params[:maxRows] 
          params.delete(:maxRows)
        end
        related_keywords(params)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spyfu-0.1.0 lib/spyfu/api/kss.rb