Published — v. 11
WS_MailUpImport.GetIdWsUser method
Overview
GetIdWsUser()
Returns a message containing the ID of the user whose authentication was executed.
Sample GetIdWsUser response
<mailupMessage> <mailupBody> <ReturnCode>0</ReturnCode> <IdUsers> <IdUser>18145</IdUser> </IdUsers> </mailupBody> </mailupMessage>
Error codes
Error code | Description |
---|---|
0 | request execution succeeded |
-200Â | unrecognized error |
Ruby Example
# Refer to https://mailup.atlassian.net/wiki/display/mailupapi/MailUp+RubyGem for gem information. require 'mailup' m = MailUp::Import.new('username', 'password', 'console_url') m.get_id_ws_user # => <?xml version=\"1.0\" encoding=\"windows-1252\" ?><mailupMessage><mailupBody><ReturnCode>0</ReturnCode><IdUsers><IdUser>123456</IdUser></IdUsers></mailupBody></mailupMessage>