Closed jokaorgua closed 7 years ago
@jokaorgua thanks for the heads-up, looks like guzzle did some crazy rewrite and the recent changes breaks the code. I will fix it soon.
I can confirm that #19 fixes to issue for my website.
@jokaorgua @Demonslay335 sorry for the delay, just released a version to composer. Please give it a shot.
https://github.com/jayzeng/virustotal_apiwrapper/pull/20 was the changes
Guzzle 6.2.0 is using form_params to send post data. And has no response->json method. Add this code to makePostRequest
if(empty($params['form_params'])) $params['form_params'] = $params
And all response->json rewrite to
return json_decode($data->getBody()->getContents(),true);