校内api

controller:
@user = params[:xn_sig_user]
   @session_key = params[:xn_sig_session_key]
   @api_key = "9ee1648c04984dbdb75f31cc611498f5"


view:

<% form_tag "http://api.xiaonei.com/restserver.do" do %>
  <%= text_field_tag "method","xiaonei.friends.getFriends" %>                                                     
  <%= text_field_tag "api_key","#{@api_key}" %>
  <%= text_field_tag "session_key", @session_key%>
  <%= text_field_tag "v", "1.0"%>
  <%= text_field_tag "uids",@user %>
  <%= text_field_tag "format", "36124652"%>
  <%= submit_tag "确定" %>
<% end %>

你可能感兴趣的:(java)