Skip to content

Commit

Permalink
Update RequestTransaction.php
Browse files Browse the repository at this point in the history
  • Loading branch information
den67rus authored Sep 12, 2016
1 parent b5b005f commit 28006d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getjump/Vk/RequestTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public function fetchData()
$args['sig'] = md5('/method/'.$this->methodName.'?'.http_build_query($args).$this->noHttpsSecret);
}

$data = $this->guzzle->post(self::URL_VK_API.$this->methodName, ['body' => $args])->getBody()->getContents();
$c = new Api($data, $this->callback); + $c = new Api(json_decode($data), $this->callback);
$data = $this->guzzle->post(self::URL_VK_API.$this->methodName, ['form_params' => $args])->getBody()->getContents();
$c = new Api(json_decode($data), $this->callback);

return $c;
}
Expand Down

0 comments on commit 28006d0

Please sign in to comment.