Versions Compared

Key

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

Method parameters

Returns all the available lists and their IDs. If you need also list GUIDs you can use WS_MailUpImport.GetNlLists

Method parameters

  • string GetLists(string accessKey)
    • accessKey: access key obtained using the 
    Login

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

...

SOAP Examples

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

Code Examples

Code Block
languageruby
titleRuby
# 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
# Returns XML response
# => "<GetListsResult><errorCode>0</errorCode><errorDescription></errorDescription><lists> ... </lists></GetListsResult>"