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

        if (!is_string($communityId)) {
            throw new InvalidTypeException('Community ID', 'string', gettype($communityId));
        }

        return $this->get(sprintf('communities/%s', $communityId));
    }
public function getCommunityById($communityId)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($communityId)) {
            throw new InvalidTypeException('Community ID', 'string', gettype($communityId));
        }

        return $this->get(sprintf('communities/%s', $communityId));
    }
public function getCommunityById ( $ communityId ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ communityId ) ) { throw new InvalidTypeException ( 'Community ID' , 'string' , gettype ( $ communityId ) ) ; } return $ this -> get ( sprintf ( 'communities/%s' , $ communityId ) ) ; }
Get community by ID

@param string $communityId
@throws InvalidTypeException
@throws EndpointNotSupportedByApiVersionException
@return array|json
Get community by ID