public function blockUser($userIdentifier, $userToBlockIdentifier, $accessToken)
    {
        if ($this->apiVersionIsGreaterThanV3()) {
            if (!is_numeric($userIdentifier) || !is_numeric($userToBlockIdentifier)) {
                throw new InvalidIdentifierException('user');
            }
        }

        return $this->put(sprintf('users/%s/blocks/%s', $userIdentifier, $userToBlockIdentifier), [], $accessToken);
    }
public function blockUser($userIdentifier, $userToBlockIdentifier, $accessToken)
    {
        if ($this->apiVersionIsGreaterThanV3()) {
            if (!is_numeric($userIdentifier) || !is_numeric($userToBlockIdentifier)) {
                throw new InvalidIdentifierException('user');
            }
        }

        return $this->put(sprintf('users/%s/blocks/%s', $userIdentifier, $userToBlockIdentifier), [], $accessToken);
    }
public function blockUser ( $ userIdentifier , $ userToBlockIdentifier , $ accessToken ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) ) { if ( ! is_numeric ( $ userIdentifier ) || ! is_numeric ( $ userToBlockIdentifier ) ) { throw new InvalidIdentifierException ( 'user' ) ; } } return $ this -> put ( sprintf ( 'users/%s/blocks/%s' , $ userIdentifier , $ userToBlockIdentifier ) , [ ] , $ accessToken ) ; }
Block a user

@param string|int $userIdentifier
@param string|int $userToBlockIdentifier
@param string     $accessToken
@throws InvalidIdentifierException
@return array|json
Block a user