Class: AuthenticationUserexistsRequest
Class Method Summary
collapse
call_class, generate_class_params
Methods inherited from Request
generate_signature
Class Method Details
.call_method ⇒ Object
2
3
4
|
# File 'lib/refworks/authentication/userexists/authentication_userexists_request.rb', line 2
def self.call_method
'userexists'
end
|
.generate_request_info(params) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/refworks/authentication/userexists/authentication_userexists_request.rb', line 10
def self.generate_request_info(params)
class_params = generate_class_params(params)
method_params = { :method => call_method,
}
query_string_params = class_params.merge(method_params)
login_name = params[:login_name]
password = params[:password]
group_code = params[:group_code]
message_body = <<-EOS
<RWRequest class="authentication" method="userexists">
<AcctInfo loginName="#{login_name}" groupCode="#{group_code}" password="#{password}"></AcctInfo>
</RWRequest>
EOS
{:params => query_string_params, :body => message_body, :headers => {'Content-type' => 'text/xml'}}
end
|
.http_request_verb ⇒ Object
6
7
8
|
# File 'lib/refworks/authentication/userexists/authentication_userexists_request.rb', line 6
def self.http_request_verb
'POST'
end
|