public function createCustomAPI($url, $name)
    {
        $api = new Custom($url, $name);
        if (!$this->getHttpClient()) {
            $this->setHttpClient();
        }
        if (!$this->getEntityFactory()) {
            $this->setEntityFactory();
        }
        return $api->registerDiffbot($this);
    }
public function createCustomAPI($url, $name)
    {
        $api = new Custom($url, $name);
        if (!$this->getHttpClient()) {
            $this->setHttpClient();
        }
        if (!$this->getEntityFactory()) {
            $this->setEntityFactory();
        }
        return $api->registerDiffbot($this);
    }
public function createCustomAPI ( $ url , $ name ) { $ api = new Custom ( $ url , $ name ) ; if ( ! $ this -> getHttpClient ( ) ) { $ this -> setHttpClient ( ) ; } if ( ! $ this -> getEntityFactory ( ) ) { $ this -> setEntityFactory ( ) ; } return $ api -> registerDiffbot ( $ this ) ; }
Creates a generic Custom API

Does not have predefined Entity, so by default returns Wildcards

@param string $url Url to analyze
@param string $name Name of the custom API, required to finalize URL
@return Custom
Creates a generic Custom API