Method parameters
Returns all the groups in a list that can be viewed by the user who performed a Login via accessKey.
- string GetGroups(stringaccessKey, int listID)
- accessKey: access key obtained using the LoginFromId method
- listID: ID of the desired list
...
SOAP Examples
Code Block |
---|
language | html/xml |
---|
title | SOAP Response |
---|
linenumbers | true |
---|
|
<GetGroupResult>
<errorCode>0</errorCode>
<errorDescription></errorDescription>
<list>
<listID>1</listID>
<listName>Demo</listName>
</list>
<groups>
<group>
<groupID>1</groupID>
<groupName>Demo</groupName>
</group>
</groups>
</GetGroupResult> |
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_groups(:listID => 1)
# Returns XML response
# => "<GetGroupResult><errorCode>0</errorCode><errorDescription></errorDescription><list> ... </list><groups> ... </groups></GetGroupResult>" |