static
osapi.jive.corev3.members
Static class for getting and creating Jive social group
Members
. Creating a Member object
results in adding a user to a group.Methods
↑
Member Representation of the newly created membership
create(member,options)
POST /members/places/{placeURI}
Retrieves
Member
Description
Create a new member, and return an entity describing it. The minimum information required to create a new member is:
{ "person" : "https://example.jiveon.com/api/core/v3/people/####", "state" : "member" }
The only valid states that may be used when creating a member are:
- owner - Person has group administration capabilities as well as membership
- member - Person has regular membership capabilities only
Takes:
- Member Data describing the new membership
Options:
Name | Type | Required | Description |
---|---|---|---|
placeURI | String | true | URI of the group for which to create a new member |
fields | String | false | Names of the fields to be returned |
Retrieves:
↑
Member Representation of the requested membership
get(options)
GET /members/{uri}
Retrieves
Member
Description
Return the specified membership by its URI.
Options:
Name | Type | Required | Description |
---|---|---|---|
uri | String | true | URI of the membership to be returned |
fields | String | false | Names of the fields to be returned |
Retrieves:
↑
Member[] representing of the requested membership
getMembersByGroup(options)
GET /members/places/{placeID}
Retrieves
Member[]
Description
Return the members of the group (by id).
Options:
Name | Type | Required | Description |
---|---|---|---|
uri | String | false | URI of the membership to be returned |
state | String[] | false | List of states used to filter the returned results (default is all states). Possible values are: 'banned', 'invited', 'member', 'owner' and 'pending'. |
fields | String | false | Names of the fields to be returned |