Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Overview

GetNlListsUser(int userId) Restituisce un oggetto che elenca le liste ed i gruppi disponibili per un dato utente, identificato dal parametro di ingresso. (ad esempio restituisce 3 liste

Returns a message containing the available lists and groups for a certain user, identified by an input parameter. (e.g. three lists: "Technical Support Subscribers", "Company News Subscribers", "Product News Subscribers" e ciascuna di queste può contenere uno o più gruppi).
<mailupMessage>
<mailupBody>
<ReturnCode>0</ReturnCode>
<Lists>
<List ; each list might contain one or more groups).

Sample GetNlListsUser response

Code Block
languagehtml/xml
linenumberstrue
<mailupMessage>
<mailupBody>
<ReturnCode>0</ReturnCode>
<Lists>
<List idList="1" listGUID="F9168C5E-CEB2-4FAA-B6BF-329BF39FA1E4">

...


<Groups>

...


<Group idGroup="1" groupName="First Group" />

...


<Group idGroup="2" groupName="Second Group" />

...


</Groups>

...


</List>

...


</Lists>

...


</mailupBody>

...


</mailupMessage>

...

Error codes

Error codeDescription
0request execution succeeded
-

...

200 unrecognized error

Ruby Example

Code Block
languageruby
# 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_nl_lists_user(:userId => 123456)
# => <?xml version=\"1.0\" encoding=\"windows-1252\" ?><mailupMessage><mailupBody><ReturnCode>0</ReturnCode><Lists>...</Lists></mailupBody></mailupMessage>