Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Improve get requests handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ousmanedev committed Nov 20, 2016
1 parent 17305d5 commit 8c27b92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Botamp/Api/ApiRequestor.php
Expand Up @@ -34,7 +34,8 @@ public function send($action, $params = [])
case 'all':
return $this->httpClient->get($this->serializeUrl($params));
case 'get':
return $this->httpClient->get($this->url.( $params['id'] !== null ? '/'.$params['id'] : ''));
$url = $this->url.( $params['id'] !== null ? '/'.$params['id'] : '');
return $this->httpClient->get($url);
case 'create':
return $this->httpClient->post($this->url, [], $this->serializeBody($params));
case 'update':
Expand Down

0 comments on commit 8c27b92

Please sign in to comment.