Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

/manager
Utility function, returns all community and users the current person manages
Possible Methods

GET

Arguments

n/a

JSON Object

n/a

 

Example
curl -b cookies.txt -X GET "http://localhost:8185/manager" > response.txt

 

Example Response
curl -b cookies.txt -X GET "http://localhost:8185/manager" > response.txt

 

 {
    "response": {
        "action": "Manager",
        "success": true,
        "message": "Returned contacts successfully",
        "time": 0
    },
    "data": {
        "managed_communities": [
            {
                "_id": "5367a137e4b0f21816352e9e",
                "created": "May 5, 2014 02:33:27 PM UTC",
                "modified": "May 5, 2014 02:33:27 PM UTC",
                "name": "Caleb Burch Superfans",
                "description": "they love me",
                "isSystemCommunity": false,
                "isPersonalCommunity": false,
                "tags": [
                    "inf_group_identifier"
                ],
                "communityAttributes": {
                    "usersCanCreateSubCommunities": {
                        "type": "Boolean",
                        "value": "false"
                    },
                    "registrationRequiresApproval": {
                        "type": "Boolean",
                        "value": "false"
                    },
                    "publishMemberOverride": {
                        "type": "Boolean",
                        "value": "true"
                    },
                    "isPublic": {
                        "type": "Boolean",
                        "value": "false"
                    },
                    "usersCanSelfRegister": {
                        "type": "Boolean",
                        "value": "false"
                    }
                },
                "userAttributes": {
                    "publishCommentsPublicly": {
                        "type": "Boolean",
                        "defaultValue": "false",
                        "allowOverride": false
                    },
                    "publishQueriesToActivityFeed": {
                        "type": "Boolean",
                        "defaultValue": "true",
                        "allowOverride": false
                    },
                    "publishLoginToActivityFeed": {
                        "type": "Boolean",
                        "defaultValue": "true",
                        "allowOverride": false
                    },
                    "publishCommentsToActivityFeed": {
                        "type": "Boolean",
                        "defaultValue": "true",
                        "allowOverride": false
                    },
                    "publishSharingToActivityFeed": {
                        "type": "Boolean",
                        "defaultValue": "true",
                        "allowOverride": false
                    }
                },
                "ownerId": "5231d1dce4b07ac83db1077a",
                "communityStatus": "active",
                "ownerDisplayName": "Caleb Burch",
                "numberOfMembers": 1,
                "members": [
                    {
                        "_id": "5231d1dce4b07ac83db1077a",
                        "email": "cburch@ikanow.com",
                        "displayName": "Caleb Burch",
                        "userType": "owner",
                        "userStatus": "active",
                        "userAttributes": [
                            {
                                "type": "publishCommentsToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishSharingToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishQueriesToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishLoginToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishCommentsPublicly",
                                "value": "false"
                            }
                        ]
                    },
                    {
                        "_id": "5357cc8be4b0a329baa475bf",
                        "email": "cburch@test.com",
                        "displayName": "test burch",
                        "userType": "moderator",
                        "userStatus": "active",
                        "userAttributes": [
                            {
                                "type": "publishCommentsPublicly",
                                "value": "false"
                            },
                            {
                                "type": "publishSharingToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishLoginToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishQueriesToActivityFeed",
                                "value": "true"
                            },
                            {
                                "type": "publishCommentsToActivityFeed",
                                "value": "true"
                            }
                        ]
                    }
                ]
            }
        ],
        "managed_users": [
            {
                "_id": "5357cc8be4b0a329baa475bf",
                "email": "cburch@test.com",
                "displayName": "test burch",
                "userType": "moderator",
                "userStatus": "active",
                "userAttributes": [
                    {
                        "type": "publishCommentsPublicly",
                        "value": "false"
                    },
                    {
                        "type": "publishSharingToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishLoginToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishQueriesToActivityFeed",
                        "value": "true"
                    },
                    {
                        "type": "publishCommentsToActivityFeed",
                        "value": "true"
                    }
                ]
            }
        ]
    }
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.