dialogflow icon indicating copy to clipboard operation
dialogflow copied to clipboard

vendor/autoload.php is missing from sources?

Open nimrod-cohen opened this issue 7 years ago • 5 comments

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.

nimrod-cohen avatar May 18 '17 15:05 nimrod-cohen

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

Smus avatar Aug 22 '17 19:08 Smus

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 avatar Aug 22 '17 19:08 nimrod-cohen

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"];

nimrod-cohen avatar Aug 22 '17 19:08 nimrod-cohen

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.

gambry avatar Oct 28 '17 11:10 gambry

you should install on composer sir

ilyasahsan123 avatar Nov 02 '17 03:11 ilyasahsan123