EndPreviousNextEnd EndPrint This TopicEnd

MemberGroups

The MemberGroups API returns a list of group names which could be assigned to a Contegro member

 

Data to be passed to the webservice

 

Variable name

Data type

Description

authToken

String

An auth token which you got by calling the GetAuthToken API

 

Data which is returned

Variable name

Data type

Description

groups

String array

A list of group names

errorCode

String

If your request was successful, the errorCode will be 0

If your request had a problem, there will be an error code for each kind of problem

errorMessage

String

A description of the problem with your error request (if there was a problem)

If your request was successful, this will be an empty string

 

Example XML for a MemberGroups request

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">               

<soap:Body>

    <MemberGroups xmlns="http://contegro.com/">                   

        <authToken>ea1f64f2-8bf3-458f-b97b-57839d7402da</authToken>                 

    </MemberGroups>               

</soap:Body>             

</soap:Envelope>

 

 

Example XML which is returned

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<MemberGroupsResponse xmlns="http://contegro.com/">

    <MemberGroupsResult>

        <errorCode>0</errorCode>

        <errorMessage/>

        <groups>

            <string>Travel Agents</string>

            <string>Service Providers</string>

            <string>Online Members</string>

            <string>Newsletter Signups</string>

            <string>Corporate</string>

            <string>Family Friends Discount</string>

            <string>Staff</string>

            <string>Registry owners</string>

            <string>HenkGroup</string>

            <string>Parking Customers</string>

            <string>Online Subscriptions - Pack 1</string>

            <string>Online Subscriptions - Pack 2</string>

            <string>IN Franchisee</string>

        </groups>

    </MemberGroupsResult>

</MemberGroupsResponse>

</soap:Body>

</soap:Envelope>

 

Topic Link