Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add sample ping rake task

  • Loading branch information...
commit 970e58cfa0f4e29e0f148ba6fc8b1f75dcea0034 1 parent 2425030
@aaronpk authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
12 Rakefile
@@ -14,3 +14,15 @@ namespace :db do
end
end
+namespace :test do
+ def pingback_client
+ XMLRPC::Client.new "localhost", "/test/xmlrpc", 9019
+ end
+
+ task :sample1 do
+ source_uri = "http://techslides.com/tumblr-api-example-using-oauth-and-php/?id=" + rand(100).to_s
+ target_uri = "http://oauth.net/code/"
+ c = pingback_client
+ c.call('pingback.ping', source_uri, target_uri)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.