rb_raven_api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,23 @@
1
+ == 0.0.3
2
+
3
+ * Raven::Engines
4
+ * Specs added since no longer redirecting to login.
5
+ * Raven::Competitors
6
+ * Raven::Competitors#for_domain
7
+
8
+ == 0.0.2
9
+
10
+ * Raven::Domain#info
11
+
12
+ == 0.0.1
13
+
14
+ * Raven
15
+ * Raven::Domain
16
+ * Raven::Domain#all
17
+ * Raven::Domain#add
18
+ * Raven::Domain#keywords
19
+ * Raven::Domain#keywords_with_tags
20
+ * Raven::Engines
21
+ * Raven::Engines#all [Not Working, Redirecting to login]
22
+ * Raven::Profile
23
+ * Raven::Profile#info
data/README.md CHANGED
@@ -66,6 +66,20 @@ Example response in JSON
66
66
  "response":"success"
67
67
  }
68
68
 
69
+ ## Competitors
70
+
71
+ Competitors endpoint to get your tracked competitors for a domain.
72
+
73
+ ### For Domain
74
+
75
+ This request will return the available competitors for the domain provided.
76
+
77
+ Raven::Competitors.for_domain 'poop-chute.com'
78
+
79
+ Example response in JSON
80
+
81
+ ["poopers.com", "daily-fiber.com", "metamucil.com"]
82
+
69
83
  ### Keywords
70
84
 
71
85
  This request will return the available keywords for the domain provided.
@@ -109,7 +123,13 @@ This request will return the search engines for the domain provided.
109
123
 
110
124
  Raven::Domain.info 'poop-chute.com'
111
125
 
126
+ Example response in JSON
112
127
 
128
+ [
129
+ {"id":"1","name":"Google"},
130
+ {"id":"2","name":"Yahoo!"},
131
+ {"id":"3","name":"Bing"}
132
+ ]
113
133
 
114
134
  ## Keywords
115
135
 
@@ -139,6 +159,31 @@ Example response in JSON
139
159
  "response":"success"
140
160
  }
141
161
 
162
+ ## Engines
163
+
164
+ Engines endpoint to get all the supported Raven engines.
165
+
166
+ ## All
167
+
168
+ This request will return the available search engines for tracking keywords, to be used when adding or modifying domains.
169
+
170
+ Raven::Engines.all
171
+
172
+ Example response in JSON
173
+
174
+ [
175
+ {"id":"93","name":"Yahoo! GR"},
176
+ {"id":"94","name":"Bing NL"},
177
+ {"id":"95","name":"Bing FR"},
178
+ {"id":"96","name":"Yahoo FR"},
179
+ {"id":"97","name":"Google LT"},
180
+ {"id":"98","name":"Bing BE"},
181
+ {"...":"..."},
182
+ {"id":"1","name":"Google"},
183
+ {"id":"2","name":"Yahoo!"},
184
+ {"id":"3","name":"Bing"}
185
+ ]
186
+
142
187
  ## License
143
188
 
144
189
  Written by Chavez
data/lib/raven.rb CHANGED
@@ -3,6 +3,7 @@ require 'rest-client'
3
3
  require 'net/http'
4
4
  require 'hashie'
5
5
 
6
+ require File.dirname(__FILE__) + '/rb_raven_api/competitors'
6
7
  require File.dirname(__FILE__) + '/rb_raven_api/config'
7
8
  require File.dirname(__FILE__) + '/rb_raven_api/domain'
8
9
  require File.dirname(__FILE__) + '/rb_raven_api/engines'
@@ -0,0 +1,18 @@
1
+ module Raven
2
+
3
+ class Competitors
4
+
5
+ ##
6
+ # This request will return the available competitors for the domain provided.
7
+ #
8
+ # @param domain [String] *Required* The domain name you want results for. _Must match exactly_
9
+ # @return [Raven::Response] Response object with request results.
10
+ #
11
+
12
+ def self.for_domain domain
13
+ Raven.http.get '', { method: 'competitors', domain: domain }
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -5,8 +5,7 @@ module Raven
5
5
  ##
6
6
  # Supported engines for Raven.
7
7
  #
8
- # @return [Array] Supported engines.
9
- # @note Currently getting redirected to login for this endpoint
8
+ # @return [Raven::Response] Response object with request results.
10
9
  #
11
10
 
12
11
  def self.all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_raven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2012-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -113,8 +113,10 @@ executables: []
113
113
  extensions: []
114
114
  extra_rdoc_files:
115
115
  - README.md
116
+ - CHANGELOG.rdoc
116
117
  files:
117
118
  - lib/raven.rb
119
+ - lib/rb_raven_api/competitors.rb
118
120
  - lib/rb_raven_api/config.rb
119
121
  - lib/rb_raven_api/domain.rb
120
122
  - lib/rb_raven_api/engines.rb
@@ -125,6 +127,7 @@ files:
125
127
  - lib/rb_raven_api/response.rb
126
128
  - lib/rb_raven_api.rb
127
129
  - README.md
130
+ - CHANGELOG.rdoc
128
131
  homepage: http://github.com/mtchavez/rb-raven-api
129
132
  licenses: []
130
133
  post_install_message: