jayzeng / virustotal_apiwrapper

Virus Total Public API v2.0 PHP Wrapper
http://jayzeng.github.io/virustotal_apiwrapper/
MIT License
65 stars 18 forks source link

Api is broken because of guzzle #18

Closed jokaorgua closed 7 years ago

jokaorgua commented 7 years ago

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);

jayzeng commented 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.

Demonslay335 commented 7 years ago

I can confirm that #19 fixes to issue for my website.

jayzeng commented 7 years ago

@jokaorgua @Demonslay335 sorry for the delay, just released a version to composer. Please give it a shot.

jayzeng commented 7 years ago

https://github.com/jayzeng/virustotal_apiwrapper/pull/20 was the changes