public function update($account, $groupOwner, $groupSlug, $privilege)
    {
        if (!in_array($privilege, array('admin', 'collaborator'))) {
            throw new \InvalidArgumentException("Invalid privilege provided.");
        }

        return $this->requestPut(
            sprintf('users/%s/privileges/%s/%s', $account, $groupOwner, $groupSlug),
            array('privileges' => $privilege)
        );
    }
public function update($account, $groupOwner, $groupSlug, $privilege)
    {
        if (!in_array($privilege, array('admin', 'collaborator'))) {
            throw new \InvalidArgumentException("Invalid privilege provided.");
        }

        return $this->requestPut(
            sprintf('users/%s/privileges/%s/%s', $account, $groupOwner, $groupSlug),
            array('privileges' => $privilege)
        );
    }
public function update ( $ account , $ groupOwner , $ groupSlug , $ privilege ) { if ( ! in_array ( $ privilege , array ( 'admin' , 'collaborator' ) ) ) { throw new \ InvalidArgumentException ( "Invalid privilege provided." ) ; } return $ this -> requestPut ( sprintf ( 'users/%s/privileges/%s/%s' , $ account , $ groupOwner , $ groupSlug ) , array ( 'privileges' => $ privilege ) ) ; }
Updates a group's privileges on a team account

@access public
@param  string           $account    The team or individual account name.
@param  string           $groupOwner The account that owns the group.
@param  string           $groupSlug  The group identifier.
@param  string           $privilege  Either admin or collaborator.
@return MessageInterface

@throws \InvalidArgumentException
Updates a group s privileges on a team account