lancecarlson-yahoo-se 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +20 -17
- data/lib/yahoo-se.rb +1 -1
- data/lib/yahoo-se/inlinks.rb +1 -0
- data/lib/yahoo-se/pages.rb +1 -0
- data/lib/yahoo-se/update_notification.rb +1 -0
- data/lib/yahoo-se/version.rb +1 -1
- data/spec/yahoo-se/update_notification_spec.rb +1 -0
- metadata +1 -1
data/README
CHANGED
@@ -10,23 +10,26 @@ gem install yahoo-se
|
|
10
10
|
|
11
11
|
== Usage
|
12
12
|
|
13
|
-
Yahoo::SE.application_id = "YOUR_YAHOO_APPLICATION_ID"
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
backlinks.results
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
Yahoo::SE.application_id = "YOUR_YAHOO_APPLICATION_ID"
|
14
|
+
|
15
|
+
# Inlink Service
|
16
|
+
backlinks = Yahoo::SE.inlinks("http://rubyskills.com", :results => 100)
|
17
|
+
backlinks.results
|
18
|
+
backlinks.next
|
19
|
+
backlinks.results
|
20
|
+
|
21
|
+
# Page Service
|
22
|
+
page_data = Yahoo::SE.pages("http://rubyskills.com", :results => 100)
|
23
|
+
page_data.results
|
24
|
+
page_data.next.results
|
25
|
+
|
26
|
+
# Ping Service
|
27
|
+
ping = Yahoo::SE.ping("http://rubyskills.com")
|
28
|
+
ping.response
|
29
|
+
|
30
|
+
# Update Notification Service
|
31
|
+
update_notification = Yahoo::SE.update_notification("http://rubyskills.com")
|
32
|
+
update_notification.response
|
30
33
|
|
31
34
|
See Yahoo::SE for more info
|
32
35
|
|
data/lib/yahoo-se.rb
CHANGED
@@ -12,6 +12,6 @@ module Yahoo
|
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
%w(inlinks pages request response result version ping update_notification).each do |file|
|
15
|
+
%w(exceptions inlinks pages request response result version ping update_notification).each do |file|
|
16
16
|
require File.join(File.dirname(__FILE__), "yahoo-se", file)
|
17
17
|
end
|
data/lib/yahoo-se/inlinks.rb
CHANGED
data/lib/yahoo-se/pages.rb
CHANGED
data/lib/yahoo-se/version.rb
CHANGED
@@ -11,6 +11,7 @@ describe Yahoo::SE::UpdateNotification do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should return a successful JSON message" do
|
14
|
+
Yahoo::SE.application_id = "123"
|
14
15
|
Yahoo::SE::Request.should_receive(:new).with("http://search.yahooapis.com/SiteExplorerService/V1/updateNotification", {:url=>"erbmicha.com"}).and_return(@request)
|
15
16
|
Yahoo::SE.update_notification("erbmicha.com")
|
16
17
|
end
|