WS_MailUpSend.GetListsUser
Â
Returns all the lists that can be viewed by a specific user
Method parameters
- string GetListsUser(string accessKey, intidUser)
- 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 Example
SOAP Request
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://services.mailupnet.it/WS"> <soap:Header/> <soap:Body> <ws:GetListsUser> <!--Optional:--> <ws:accessKey>HzAgwRRJaAKBtkgNWpkAuURfV4SxMm6T3HJegRuSkUivKJElNNcmSQe8nqGyoM9S8EyQZb6ZE2shjHWIN4f5xYBJx9uda</ws:accessKey> <!--idUser can be retrieved by getIDUser--> <ws:idUser>12345</ws:idUser> </ws:GetListsUser> </soap:Body> </soap:Envelope>
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>