Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method parameters

Returns all the available lists. If you need also list GUID please refer to GetNlList method

Method parameters

  • string GetLists(stringaccessKey)
    • accessKey: access key obtained using the LoginFromId method

If error code=0, the message will contain the IDs of all the accessible lists.

...

SOAP Examples

Code Block
languagehtml/xml
titleGetLists requestSOAP Request
firstline1
linenumberstrue
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://services.mailupnet.it/WS">
    <soap:Header/>
    <soap:Body>
       <ws:GetLists>
           <ws:accessKey>HzAgwRRJaAKBtkgNWpkAuURfV4SxMm6T3HJegRuSkUivKJElNNcmSQe8nqGyoM9S8EyQZb6ZE2shjHWIN4f5xYBJx9u</ws:accessKey>
       </ws:GetLists>
    </soap:Body>
</soap:Envelope>

...

Code Block
languagehtml/xml
titleSOAP Response
firstline1
linenumberstrue
<GetListsResult>
<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>
</GetListsResult>

Ruby Example

Code Block
languageruby
# Refer to https://mailup.atlassian.net/wiki/display/mailupapi/MailUp+RubyGem for gem information.
require 'mailup'
m = MailUp::Send.new('username', 'password')
m.get_lists
# => "<GetListsResult><errorCode>0</errorCode><errorDescription></errorDescription><lists><list><listID>1</listID><listName>News</listName></list></lists></GetListsResult>"