public
Description: Ruby Client Library for 51.com's API
Clone URL: git://github.com/taweili/wuyao.git
change to new api server
taweili (author)
Sun Aug 24 08:16:49 -0700 2008
commit  daf115314332704ef2c5ac0ac998d5976f23ef23
tree    5b2ee7cf1d360fccba929523537c9ba810f81b91
parent  f8bc75fc542a85b90d98eef29e7df2fabaec8e02
...
9
10
11
12
13
 
14
15
16
...
9
10
11
 
 
12
13
14
15
0
@@ -9,8 +9,7 @@ module Wuyao
0
     
0
     private
0
     def url
0
- # URI.parse('http://sandbox.api.51.com/restserver_0_1.php')
0
- URI.parse('http://sandbox.api.51.com/1.0/restserver.php?')
0
+ URI.parse('http://api.51.com/1.0/restserver.php?')
0
     end
0
   end
0
 end
...
37
38
39
40
41
42
43
44
45
...
48
49
50
51
52
53
54
55
...
37
38
39
 
 
 
40
41
42
...
45
46
47
 
 
48
49
50
0
@@ -37,9 +37,6 @@ module Wuyao
0
       wuyao_params = tmp_params
0
       str = (wuyao_params.sort.collect { |c| "#{c[0]}=#{c[1]}" }).join("") + ENV['WUYAO_SECRET_KEY']
0
       
0
- puts("#### #{tmp_params.inspect}")
0
- puts("#### #{str}")
0
-
0
       sig = Digest::MD5.hexdigest(str)
0
       
0
       tmp_params = { }
0
@@ -48,8 +45,6 @@ module Wuyao
0
       
0
       wuyao_params["51_sig"] = sig
0
       
0
- puts("#### #{wuyao_params.inspect}")
0
-
0
       Parse.new.process(Service.new.post(wuyao_params).body)
0
     end
0
     

Comments

    No one has commented yet.