new Members()
Methods
-
create(projectOrGroupId, member [, group])
-
Adds a member to a group or project.
Parameters:
Name Type Argument Default Description projectOrGroupIdinteger | string The ID or URL-encoded path of the project or group owned by the authenticated user.
memberobject member information.
groupboolean <optional>
false When value is true, the first parameter is groupId, false is projectId.
-
group(groupId)
-
List all members of a group
Parameters:
Name Type Description groupIdnumber | string The ID or URL-encoded path of the group owned by the authenticated user
Returns:
- Type
- Promise
-
project(projectId)
-
List all members of a project
Parameters:
Name Type Description projectIdnumber | string The ID or URL-encoded path of the project owned by the authenticated user
Returns:
- Type
- Promise
-
remove(projectOrGroupId, userId [, group])
-
Removes a user from a group or project.
Parameters:
Name Type Argument Default Description projectOrGroupIdinteger | string The ID or URL-encoded path of the project or group owned by the authenticated user.
userIdinteger The user ID of the member
groupboolean <optional>
false When value is true, the first parameter is groupId, false is projectId.