Documentation

/groups/{contentId}/users [GET]

ThoughtFarmer REST API Method: /groups/{contentId}/users

Get a list of members of a given group.

URL:
http://yourserver.com/api/groups/{contentId}/users

Response Formats:
JSON, XML

HTTP Method(s):
GET

Requires Authentication:
true, user making call must pass a valid token parameter and must have edit permissions.

Parameters:

Parameter Type Description
contentId int Required. The contentId of the group to retrieve members for
token string Required. A valid token authentication parameter

Response Status Codes:
200 - Success
404 - Group not found

Example request
GET http://yourserver.com/api/group/{contentId}/users
[
    {
        "userId": 189,
        "contentId": 1073,
        "firstName": "Ryan",
        "lastName": "Criddle",
        "preferredName": "asdfasfd",
        "email": "ryan@test.com",
        "username": "ryan",
        "jobTitle": "",
        "phoneFax": "",
        "phoneMobile": "",
        "phoneTel": "asdf",
        "timeZone": "Eastern Standard Time",
        "defaultCulture": "en",
        "birthday": "0001-01-01T00:00:00",
        "images": {
            "small": "/profileimage/193821700000/1357/50x50/False/0,0,200,200/test.png",
            "medium": "/profileimage/193821700000/1357/250x250/False/0,0,200,200/test.png",
            "large": "/profileimage/193821700000/1357/0x0/False/0,0,200,200/test.png"
        }
    },
    {
        "userId": 21,
        "contentId": 308,
        "firstName": "Jill",
        "lastName": "Purse",
        "preferredName": "",
        "email": "jill@test.com",
        "username": "jpurse",
        "jobTitle": "Marketing Coordinator",
        "phoneFax": "",
        "phoneMobile": "6045555555",
        "phoneTel": "6041231234",
        "timeZone": "Pacific Standard Time",
        "defaultCulture": "en",
        "birthday": "1896-01-01T00:00:00",
        "images": {
            "small": "/profileimage/208052030000/83/50x50/False/0,1,371,372/ME.JPG",
            "medium": "/profileimage/208052030000/83/250x250/False/0,1,371,372/ME.JPG",
            "large": "/profileimage/208052030000/83/0x0/False/0,1,371,372/ME.JPG"
        }
    }