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

vendor/autoload.php is missing from sources? #7

Open
nimrod-cohen opened this issue May 18, 2017 · 5 comments
Open

vendor/autoload.php is missing from sources? #7

nimrod-cohen opened this issue May 18, 2017 · 5 comments

Comments

@nimrod-cohen
Copy link

I'm trying to use this package without composer's assistance.

Should I "require" each and every file separately?
Also, when doing that, the code complains that GuzzleHttp is missing - is this a separate package I should download and require?

thanks in advance,
Nimrod.

@Smus
Copy link

Smus commented Aug 22, 2017

Did you find the file? im missing it aswell :-(

@nimrod-cohen
Copy link
Author

No, I ended up communicating with API.AI directly, which turned out to be an easy thing.

I'm using wordpress which has a really good http calls class

@nimrod-cohen
Copy link
Author

if this is any help:
$headers = ["Authorization" => "Bearer ".get_option("aisupport_token"),
"Content-Type" => "application/json; charset=utf-8"];
$data = [
"query" => $question,
"v" => "20170519", //current date of development
"lang" => "en",
"sessionId" => $_SESSION["aisupport_session"]
];
$result = wp_remote_post("https://api.api.ai/v1/query",
[
'headers' => $headers,
'body' => json_encode($data)
]);
return $result["body"];

@gambry
Copy link
Contributor

gambry commented Oct 28, 2017

vendor/autoload.php is generated by composer, no composer means no autoload.
You need to come up with your own solution for loading this library if you don't use composer.

@ilyasahsan123
Copy link

you should install on composer sir

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

4 participants