Skip to content

Commit 30bc59a

Browse files
committed
Asignación correcta de atributo de versión de API
1 parent bfdaed1 commit 30bc59a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ApiClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ApiClient
4949
*
5050
* @var string
5151
*/
52-
private $api_version = '/v1';
52+
private $api_version = 'v1';
5353

5454
/**
5555
* El token de autenticación para la API.
@@ -307,7 +307,7 @@ public function consume($resource, $data = [], array $headers = [], $method = nu
307307
}
308308
$method = $method ?: ($data ? 'POST' : 'GET');
309309
$client = new \GuzzleHttp\Client();
310-
$this->last_url = $this->api_url . $this->api_prefix . $this->api_version . $resource;
310+
$this->last_url = $this->api_url . $this->api_prefix . '/'. $this->api_version . $resource;
311311

312312
// preparar cabeceras que se usarán
313313
$options[\GuzzleHttp\RequestOptions::HEADERS] = array_merge([

0 commit comments

Comments
 (0)