public function reportCommunityViolation($communityId, $channelId)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_numeric($channelId)) {
            throw new InvalidIdentifierException('channel');
        }

        return $this->post(sprintf('communities/%s/report_channel', $communityId), ['channel_id' => $channelId]);
    }
public function reportCommunityViolation($communityId, $channelId)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_numeric($channelId)) {
            throw new InvalidIdentifierException('channel');
        }

        return $this->post(sprintf('communities/%s/report_channel', $communityId), ['channel_id' => $channelId]);
    }
public function reportCommunityViolation ( $ communityId , $ channelId ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_numeric ( $ channelId ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } return $ this -> post ( sprintf ( 'communities/%s/report_channel' , $ communityId ) , [ 'channel_id' => $ channelId ] ) ; }
Report a community channel violation

@param string $communityId
@param int    $channelId
@throws EndpointNotSupportedByApiVersionException
@throws InvalidIdentifierException
@return null|array|json
Report a community channel violation