Method parameters
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 LoginLoginFromId 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
Code Block |
---|
language | html/xml |
---|
title | SOAP Response |
---|
linenumbers | true |
---|
|
<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
Code Block |
---|
|
# 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>" |