WS_MailUpManage.GetListsUser

Returns all the lists that can be viewed by a specific user

Method parameters

  • string GetListsUser(string accessKey, int idUser)
    • accessKey: access key obtained using the LoginFromId method
    • idUser: ID of the user

If error code=0, the message will contain the IDs of the lists the user has access to.

SOAP Examples

SOAP Response
<GetListsUserResult>
<errorCode>0</errorCode>
<errorDescription></errorDescription>
<lists>
<list>
<listID>1</listID>
<listName>Lista nr.1</listName>
</list>
<list>
<listID>2</listID>
<listName>Lista nr.2</listName>
</list>
</lists>
</GetListsUserResult> 

Code Examples

Ruby
# Refer to https://mailup.atlassian.net/wiki/display/mailupapi/MailUp+RubyGem for gem information.
require 'mailup'
m = MailUp::Manage.new('api-username', 'api-password')
m.get_lists_user(:idUser => 132456)
# Returns XML response
# => "<GetListsUserResult><errorCode>0</errorCode><errorDescription></errorDescription><lists><list> ... </list></lists></GetListsUserResult>"