Returns all the groups in a list that can be viewed by the user who performed a Login via accessKey.

Method parameters

  • string GetGroups(stringaccessKey, int listID)
    • accessKey: access key obtained using the LoginFromId method
    • listID: ID of the desired list

SOAP Examples

SOAP Response

Code Examples

# Refer to for gem information.
require 'mailup'
m ='api-username', 'api-password')
m.get_groups(:listID => 1)
# Returns XML response
# => "<GetGroupResult><errorCode>0</errorCode><errorDescription></errorDescription><list> ... </list><groups> ... </groups></GetGroupResult>"