Class: AlPapi::Keyword
- Inherits:
-
Object
- Object
- AlPapi::Keyword
- Defined in:
- lib/al_papi/keyword.rb
Class Method Summary collapse
-
.get(params = {}) ⇒ Object
Get SERP results for keyword already POSTed or in Partner API already.
-
.post(params = {}, priority = false) ⇒ Object
POST a keyword/engine/locale combination to get SERP for.
-
.priority_post(params = {}) ⇒ Object
See post method Keyword.post for required params.
Class Method Details
.get(params = {}) ⇒ Object
Get SERP results for keyword already POSTed or in Partner API already. See parameters for what can be passed in.
40 41 42 |
# File 'lib/al_papi/keyword.rb', line 40 def self.get(params = {}) AlPapi.http.get '/keywords/get', params end |
.post(params = {}, priority = false) ⇒ Object
POST a keyword/engine/locale combination to get SERP for.
16 17 18 19 |
# File 'lib/al_papi/keyword.rb', line 16 def self.post(params = {}, priority = false) path = priority ? '/keywords/priority' : '/keywords' AlPapi.http.post path, params end |
.priority_post(params = {}) ⇒ Object
See post method post for required params
25 26 27 |
# File 'lib/al_papi/keyword.rb', line 25 def self.priority_post(params = {}) post params, true end |