Published — v. 14

WS_MailUpImport.GetIdUser method

Overview

GetIdWsUser(string userName)

Returns a message containing the user ID in the MailUp console.

Sample GetIdWsUser response

<mailupMessage>
<mailupBody>
<ReturnCode>0</ReturnCode>
<IdUsers>
<IdUser>18145</IdUser>
</IdUsers>
</mailupBody>
</mailupMessage> 

Error codes

Error codeDescription
0request execution succeeded
-200unrecognized 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_user(:userName => 'username')
# => <?xml version=\"1.0\" encoding=\"windows-1252\" ?><mailupMessage><mailupBody><ReturnCode>0</ReturnCode><IdUsers><IdUser>123456</IdUser></IdUsers></mailupBody></mailupMessage>

 

Â