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

        if (!is_string($name)) {
            throw new InvalidTypeException('Name', 'string', gettype($name));
        }

        return $this->get('communities', ['name' => $name]);
    }
public function getCommunityByName($name)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($name)) {
            throw new InvalidTypeException('Name', 'string', gettype($name));
        }

        return $this->get('communities', ['name' => $name]);
    }
public function getCommunityByName ( $ name ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ name ) ) { throw new InvalidTypeException ( 'Name' , 'string' , gettype ( $ name ) ) ; } return $ this -> get ( 'communities' , [ 'name' => $ name ] ) ; }
Get community by name

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