Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Class 'Diffbot' not found #64

Open
lesterjanpearson opened this issue Apr 4, 2018 · 1 comment
Open

Fatal error: Class 'Diffbot' not found #64

lesterjanpearson opened this issue Apr 4, 2018 · 1 comment

Comments

@lesterjanpearson
Copy link

require_once("../diffbot-php-client/vendor/autoload.php");

$diffbot = new Diffbot($token);
$url = 'http://www.sitepoint.com/diffbot-crawling-visual-machine-learning/';
$articleApi = $diffbot->createArticleAPI($url);
@ericsala
Copy link

ericsala commented May 3, 2018

Probably you are not using the correct namespace.
Try with...
$diffbot = new Swader\Diffbot\Diffbot($token);
$url = 'http://www.sitepoint.com/diffbot-crawling-visual-machine-learning/';
$articleApi = $diffbot->createArticleAPI($url);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants